What could cause many data access exceptions using EF code first in a custom RoleProvider?
问题 My role provider looks like the class below (abridged). I am running on IIS Express, and SQL 2012 Express, from VS 2012, and I get a multitude of seemingly random exceptions in this role provider code. public class Educ8RoleProvider : RoleProvider { private readonly Educ8DbContext _dbContext = new Educ8DbContext(); private readonly Authorization _authorization; public Educ8RoleProvider() { _authorization = new Authorization(_dbContext); } public override void Initialize(string name, System