public void Dispose() { if (this.dbContext != null) { this.dbContext.Dispose(); this.dbContext = null; } }
public Repository(IWebApiTestDbContext context) { if (context == null) { throw new ArgumentException("An instance of DbContext is required to use this repository.", "context"); } this.Context = context; this.DbSet = this.Context.Set <T>(); }
public RoleStore(IWebApiTestDbContext dbContext) { this.dbContext = dbContext; }
public UserStore(IWebApiTestDbContext dbContext) { this.dbContext = dbContext; }