Пример #1
0
        public void CustomerTest()
        {
            using (var dbContext = new ComiferContext())
            {
                var firstCustomer = dbContext.Customer.FirstOrDefault();
                var customers     = dbContext.Customer.ToList();

                Assert.NotNull(firstCustomer);
            }
        }
Пример #2
0
 public CustomerRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }
Пример #3
0
 public ProductParentRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }
 public CategoryRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }
 public ProviderRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }
 public PromotionRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }
Пример #7
0
 public FileRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }
Пример #8
0
 public RepositoryBase(ComiferContext context)
 {
     this.Context = context;
     this.DbSet   = context.Set <TEntity>();
     this.Context.Configuration.LazyLoadingEnabled = true;
 }
Пример #9
0
 public BrandRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }