示例#1
0
        public DbManager()
        {
            context = new ShopDbContext();

            //context.SaveChanges();
        }
示例#2
0
 internal GenericRepository(ShopDbContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }