public UnitOfWorkContext()
 {
     if (_MarketerDbContext == null)
     {
         _MarketerDbContext = new MarketerDbContext(new Microsoft.EntityFrameworkCore.DbContextOptions <MarketerDbContext>());
     }
 }
Esempio n. 2
0
 public GenericRepository(MarketerDbContext marketerDbContext)
 {
     _DbContext = marketerDbContext;
     _dbset     = marketerDbContext.Set <T>();
 }
Esempio n. 3
0
 public ProductRepository(MarketerDbContext marketerDbContext) : base(marketerDbContext)
 {
     DbContext = marketerDbContext;
 }