Tuesday, 6 August 2013

c# , Entity Framework Stored Procedure

c# , Entity Framework Stored Procedure

I am doing LINQ To Sql
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
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.

No comments:

Post a Comment