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