I'm trying to execute a store procedure like this:
public bool Test(){
var searchItem=base.Database.SqlQuery<QueryEntity>("exec nameOfMyProcedure @param1={0}",param13).FirstOrDefault();
if(searchItem!=null){
return searchItem.Output1;
}
else{
return false;
}
private class QueryEntity{
public bool Output1{get;set;}
}
I've one Return in the stored procedure
Unfortunately, searchItem always returns null.
Have you an idea how I can resolve that?
I'm using SQL server and C#.