Example #1
0
 public void Dispose()
 {
     if (this.dbContext != null)
     {
         this.dbContext.Dispose();
         this.dbContext = null;
     }
 }
Example #2
0
        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>();
        }
Example #3
0
 public RoleStore(IWebApiTestDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
Example #4
0
 public UserStore(IWebApiTestDbContext dbContext)
 {
     this.dbContext = dbContext;
 }