コード例 #1
0
        public EntityFrameworkCoreFeaturesStore Build()
        {
            var loggerFactory = new LoggerFactory();
            var logger        = loggerFactory.CreateLogger <EntityFrameworkCoreFeaturesStore>();
            var dbContext     = new StoreDbContext(_options, new StoreOptions());
            var store         = new EntityFrameworkCoreFeaturesStore(dbContext, logger);

            return(store);
        }
コード例 #2
0
        public EntityFrameworkCoreFeaturesStore Build()
        {
            var loggerFactory = new LoggerFactory();
            var diagnostics   = new EsquioEntityFrameworkCoreStoreDiagnostics(loggerFactory);

            var dbContext = new StoreDbContext(_options, new StoreOptions());
            var store     = new EntityFrameworkCoreFeaturesStore(dbContext, diagnostics);

            return(store);
        }