Cannot implicitly convert type 'System.Data.Objects.ObjectResult
You may want to try adding a SingleOrDefault or FirstOrDefault to the end of your SPROC call to close the transaction before you save.
BAD
int? rc = myContext.myProc(myParameter);
myContext.Save();
int? rc = myContext.myProc(myParameter).FirstOrDefault();
myContext.Save();
No comments:
Post a Comment