I am using Entity Framework. I have the following:
var db = new LikEntities();
GetParamAlerts_Result paramRslt = db.GetParamAlerts();
GetParamAlerts is a stored procedure and it is of type
System.Data.Objects.ObjectResult<GetParamAlerts_Result>
Note the GetParamAlerts returns multiple rows.
When I run the code above I the following error message :
Cannot implicitly convert type:
'System.Data.Objects.ObjectResult' to 'PVT_Alert_Notification.GetParamAlerts_Result'
Not sure how to resolve this.
IList<GetParamAlerts_Result>from this method?