Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public CategoryRepository(HoneyBeeContext honeyBeeContext) : base(honeyBeeContext)
 {
 }
Exemplo n.º 3
0
 public Repository(HoneyBeeContext _honeyBeeContext)
 {
     //DbContextOptions<HoneyBeeContext> _options = new DbContextOptionsBuilder<HoneyBeeContext>()
     //    .UseSqlServer(connString).Options;
     honeyBeeContext = _honeyBeeContext;
 }
Exemplo n.º 4
0
 public EntityRepository(HoneyBeeContext honeyBeeContext) : base(honeyBeeContext)
 {
 }