public DbContext(IUnitOfWork uow, IDbProvider dbProvider, IDbFactory dbFactory, IDataSource dataSource, IConnectionString connectionString, IGenerator generator, IPagerGenerator pagerGenerator, ClaimsPrincipal?claimsPrincipal = null) { this.Uow = uow; this.DbProvider = dbProvider; this.ConnectionString = connectionString; this.Generator = generator; this.PagerGenerator = pagerGenerator; this.DbFactory = dbFactory; this.DataSource = dataSource; this.User = claimsPrincipal; }
public AbstractService(IDbProvider dbProvider, IConnectionString connectionString, IGenerator generator, IPagerGenerator pagerGenerator, ILoggerFactory loggerFactory) : base(dbProvider, connectionString, generator, pagerGenerator, loggerFactory) { _logger = loggerFactory.CreateLogger <AbstractService <T> >(); }
public DbContext(IDbProvider dbProvider, IConnectionString connectionString, IGenerator generator, IPagerGenerator pagerGenerator) { this.DbProvider = dbProvider; this.ConnectionString = connectionString; this.Generator = generator; this.PagerGenerator = pagerGenerator; }
public DataSource(IDbFactory dbFactory, IPagerGenerator pagerGenerator) { DbFactory = dbFactory; PagerGenerator = pagerGenerator; }