public CustomerTypeTest() { DbContextOptions <HoneyBeeContext> _options = new DbContextOptionsBuilder <HoneyBeeContext>() .UseSqlServer("Server=DESKTOP-LPOGMEO\\SQLEXPRESS;Database=HoneyBeeContextDB;Trusted_Connection=True;MultipleActiveResultSets=true").Options; HoneyBeeContext honeyBeeContext = new HoneyBeeContext(_options); repository = new CategoryRepository <CustomerType>(honeyBeeContext); repositoryCat = new CategoryRepository <SupplierType>(honeyBeeContext); }
public CategoryRepository(HoneyBeeContext honeyBeeContext) : base(honeyBeeContext) { }
public Repository(HoneyBeeContext _honeyBeeContext) { //DbContextOptions<HoneyBeeContext> _options = new DbContextOptionsBuilder<HoneyBeeContext>() // .UseSqlServer(connString).Options; honeyBeeContext = _honeyBeeContext; }
public EntityRepository(HoneyBeeContext honeyBeeContext) : base(honeyBeeContext) { }