public void CustomerTest() { using (var dbContext = new ComiferContext()) { var firstCustomer = dbContext.Customer.FirstOrDefault(); var customers = dbContext.Customer.ToList(); Assert.NotNull(firstCustomer); } }
public CustomerRepository(ComiferContext context) : base(context) { _context = context; }
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; }
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; }