/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public InMemoryValueGeneratorSelector( [NotNull] ValueGeneratorSelectorDependencies dependencies, [NotNull] IInMemoryDatabase inMemoryDatabase) : base(dependencies) { _inMemoryStore = inMemoryDatabase.Store; }
public InMemoryDataStore( [NotNull] IModel model, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IEntityMaterializerSource entityMaterializerSource, [NotNull] IClrAccessorSource <IClrPropertyGetter> clrPropertyGetterSource, [NotNull] IInMemoryDatabase persistentDatabase, [NotNull] IEntityOptions options, [NotNull] ILoggerFactory loggerFactory) : base( Check.NotNull(model, nameof(model)), Check.NotNull(entityKeyFactorySource, nameof(entityKeyFactorySource)), Check.NotNull(entityMaterializerSource, nameof(entityMaterializerSource)), Check.NotNull(clrPropertyGetterSource, nameof(clrPropertyGetterSource)), Check.NotNull(loggerFactory, nameof(loggerFactory))) { Check.NotNull(persistentDatabase, nameof(persistentDatabase)); var storeConfig = options.Extensions .OfType <InMemoryOptionsExtension>() .FirstOrDefault(); _persist = storeConfig?.Persist ?? true; _database = new ThreadSafeLazyRef <IInMemoryDatabase>( () => _persist ? persistentDatabase : new InMemoryDatabase(loggerFactory)); }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public InMemoryDatabaseCreator([NotNull] IInMemoryDatabase database, [NotNull] IModel model) { Check.NotNull(database, nameof(database)); Check.NotNull(model, nameof(model)); _database = database; _model = model; }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public InMemoryDatabaseCreator([NotNull] StateManagerDependencies stateManagerDependencies, [NotNull] IInMemoryDatabase database) { Check.NotNull(stateManagerDependencies, nameof(stateManagerDependencies)); Check.NotNull(database, nameof(database)); _stateManagerDependencies = stateManagerDependencies; _database = database; }
public InMemoryQueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IKeyValueFactorySource keyValueFactorySource, [NotNull] IInMemoryDatabase database) : base(stateManager, keyValueFactorySource) { Check.NotNull(database, nameof(database)); _database = database; }
public InMemoryQueryContext( [NotNull] ILogger logger, [NotNull] IQueryBuffer queryBuffer, [NotNull] IInMemoryDatabase database) : base( Check.NotNull(logger, nameof(logger)), Check.NotNull(queryBuffer, nameof(queryBuffer))) { Database = database; }
public InMemoryQueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IConcurrencyDetector concurrencyDetector, [NotNull] IInMemoryDatabase database) : base(stateManager, concurrencyDetector) { Check.NotNull(database, nameof(database)); _database = database; }
public InMemoryQueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IConcurrencyDetector concurrencyDetector, [NotNull] IInMemoryDatabase database, [NotNull] IChangeDetector changeDetector) : base(stateManager, concurrencyDetector, changeDetector) { Check.NotNull(database, nameof(database)); _database = database; }
public InMemoryQueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource<IClrPropertySetter> propertySetterSource, [NotNull] IInMemoryDatabase database) : base(stateManager, entityKeyFactorySource, collectionAccessorSource, propertySetterSource) { Check.NotNull(database, nameof(database)); _database = database; }
public InMemoryQueryContextFactory( [NotNull] IStateManager stateManager, [NotNull] IEntityKeyFactorySource entityKeyFactorySource, [NotNull] IClrCollectionAccessorSource collectionAccessorSource, [NotNull] IClrAccessorSource <IClrPropertySetter> propertySetterSource, [NotNull] IInMemoryDatabase database) : base(stateManager, entityKeyFactorySource, collectionAccessorSource, propertySetterSource) { Check.NotNull(database, nameof(database)); _database = database; }
public InMemoryDatabaseFactory() { if (_instance == null) { lock (theLock) { if (_instance == null) { IConfigurationRoot configurationRoot = ConfigurationLoader.Instance.ConfigurationRoot; string classname = configurationRoot.GetSection("InMemoryDatabase").GetValue <string>("DbClass"); _instance = (IInMemoryDatabase)Activator.CreateInstance(null, classname, false, 0, null, new Object[] { configurationRoot }, null, null).Unwrap(); } } } }
public CustomInMemoryValueGeneratorSelector( ValueGeneratorSelectorDependencies dependencies, IInMemoryDatabase inMemoryDatabase) : base(dependencies, inMemoryDatabase) { }
public GarageController(IInMemoryDatabase database, ILogger <GarageController> logger) { _database = database; _logger = logger; }