Beispiel #1
0
 public static IGDbStore GetStore(
     this IGDbStoreCache gStoreCache,
     IDbContextOptions dbContextOptions,
     IGDbQueryExecutorFactory gDbQueryBuilderFactory)
 => gStoreCache
 .GetStore(
     dbContextOptions.Extensions
     .OfType <GDbContextOptionsExtension>()
     .First()
     .StoreName,
     gDbQueryBuilderFactory);
        public GDbDatabase(
            DatabaseDependencies databaseDependencies,
            IGDbStoreCache gDbStoreCache,
            IDbContextOptions dbContextOptions,
            IDiagnosticsLogger <DbLoggerCategory.Update> diagnosticsLogger,
            IGDbQueryExecutorFactory gDbQueryBuilderFactory)
            : base(
                databaseDependencies)
        {
            _gDbStore
                = gDbStoreCache
                  .GetStore(
                      dbContextOptions,
                      gDbQueryBuilderFactory);

            _diagnosticsLogger = diagnosticsLogger;
        }