Esempio n. 1
0
        public void CustomerTest()
        {
            using (var dbContext = new ComiferContext())
            {
                var firstCustomer = dbContext.Customer.FirstOrDefault();
                var customers     = dbContext.Customer.ToList();

                Assert.NotNull(firstCustomer);
            }
        }
Esempio n. 2
0
 public CustomerRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }
Esempio n. 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;
 }
Esempio n. 7
0
 public FileRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }
 public RepositoryBase(ComiferContext context)
 {
     this.Context = context;
     this.DbSet   = context.Set <TEntity>();
     this.Context.Configuration.LazyLoadingEnabled = true;
 }
 public BrandRepository(ComiferContext context) : base(context)
 {
     _context = context;
 }