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