I came across a blog where they added a ToList() at the end of a query.
This seemed to work as it closed the transaction directly after a read.
This is very odd and did not happen in previous versions of EF.
Example below in the change in repository Helper
FROM THIS
public static List
var results = RepositoryRole.GetAll().ToList();
return results;
}
p.s. I have lost the reference post that gave me the answer, opps sorry if it was your post, I'll add it if I find it again.
No comments:
Post a Comment
Comments are welcome, but are moderated and may take a wee while before shown.