c# - Using Object Result to receive a query (stored procedure) in Entity Framework? -


[httppost] public actionresult data (formcollection form) {     int qid = convert.toint32(form["emailaddress"].tostring());      using  (var db = new adventureworks2014entities() )     {         objectresult<getemail_result> em = db.getemail(qid);       //error     }     //more code downwards 

this error message:

cannot implicitly convert type 'system.data.entity.core.objects.objectresult' 'system.data.objects.objectresult'

why getting error?


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -