/// <summary>
 /// Initializes a new instance of the <see cref="SqlLocalizedViewsRepository"/> class.
 /// </summary>
 /// <param name="db">Connection to the database. Typically created per request.</param>
 public SqlLocalizedViewsRepository(ILocalizationDbContext db)
 {
     if (db == null)
     {
         throw new ArgumentNullException("db");
     }
     _db = db;
 }
 /// <summary>
 ///   Initializes a new instance of the <see cref="SqlLocalizedTypesRepository" /> class.
 /// </summary>
 /// <param name="db"> Database connection. </param>
 public SqlLocalizedTypesRepository(ILocalizationDbContext db)
 {
     if (db == null) throw new ArgumentNullException("db");
     _db = db;
 }
 public EFStringLocalizerFactory(ILocalizationDbContext context)
 {
     _context = context;
 }
Пример #4
0
 public EFCollection(ILocalizationDbContext <TKey> DbContext, IRequestCultureProvider cultureProvider) : base(cultureProvider)
 {
     _DbContext = DbContext;
     Refresh();
 }
 public LocalizationDataSeederCommandHandler(ILocalizationDbContext context)
 {
     _context = context;
 }
Пример #6
0
 public Handler(ILocalizationDbContext context)
 => _context = context;
 public LocalizationDataSeeder(ILocalizationDbContext context)
 {
     _context = context;
 }