public UserRepository( SQLiteConnectionstringResolver connectionStringResolver, IOptions <MultiTenantOptions> multiTenantOptions, ILoggerFactory loggerFactory) { if (multiTenantOptions == null) { throw new ArgumentNullException(nameof(multiTenantOptions)); } if (connectionStringResolver == null) { throw new ArgumentNullException(nameof(connectionStringResolver)); } if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } this.multiTenantOptions = multiTenantOptions.Options; logFactory = loggerFactory; log = loggerFactory.CreateLogger(typeof(UserRepository).FullName); connectionString = connectionStringResolver.Resolve(); dbSiteUser = new DBSiteUser(connectionString, logFactory); dbUserLogins = new DBUserLogins(connectionString, logFactory); dbUserClaims = new DBUserClaims(connectionString, logFactory); dbUserLocation = new DBUserLocation(connectionString, logFactory); dbRoles = new DBRoles(connectionString, logFactory); }
public LogRepository( SQLiteConnectionstringResolver connectionStringResolver, ILoggerFactory loggerFactory) { if (connectionStringResolver == null) { throw new ArgumentNullException(nameof(connectionStringResolver)); } if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } logFactory = loggerFactory; log = loggerFactory.CreateLogger(typeof(GeoRepository).FullName); connectionString = connectionStringResolver.Resolve(); dbSystemLog = new DBSystemLog(connectionString, logFactory); }
public SiteRepository( SQLiteConnectionstringResolver connectionStringResolver, ILoggerFactory loggerFactory) { if (connectionStringResolver == null) { throw new ArgumentNullException(nameof(connectionStringResolver)); } if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } logFactory = loggerFactory; log = loggerFactory.CreateLogger(typeof(SiteRepository).FullName); connectionString = connectionStringResolver.Resolve(); dbSiteSettings = new DBSiteSettings(connectionString, logFactory); dbSiteSettingsEx = new DBSiteSettingsEx(connectionString, logFactory); dbSiteFolder = new DBSiteFolder(connectionString, logFactory); }
public GeoRepository( SQLiteConnectionstringResolver connectionStringResolver, ILoggerFactory loggerFactory) { if (connectionStringResolver == null) { throw new ArgumentNullException(nameof(connectionStringResolver)); } if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } logFactory = loggerFactory; log = loggerFactory.CreateLogger(typeof(GeoRepository).FullName); connectionString = connectionStringResolver.Resolve(); dbGeoCountry = new DBGeoCountry(connectionString, logFactory); dbGeoZone = new DBGeoZone(connectionString, logFactory); dbLanguage = new DBLanguage(connectionString, logFactory); dbCurrency = new DBCurrency(connectionString, logFactory); }