public DatabaseContext(DatabaseContextOptions options) { options_ = options; modelDataStorage_ = new ModelDataStorage <Type>(); dbQueryTranslator_ = new DatabaseCreationQueryTranslator(modelDataStorage_); constraintTranslator_ = new ConstraintTranslator(options); dbTableToPropertyName_ = new Dictionary <Type, string>(); stateManager_ = new StateManager(modelDataStorage_); database_ = new SqlDatabase(new SqlEntityDeserializer(modelDataStorage_, stateManager_), options_.ConnectionString); tableNameProvider_ = new TableNameProvider(); changeDetector_ = new ChangeDetector(tableNameProvider_, modelDataStorage_); updateQueryTranslator_ = new UpdateQueryTranslator(new WhereQueryTranslator()); }
public EntityPropertyBuilder(IModelDataStorage <Type> storage) { storage_ = storage; }
public EntityBuilder(IModelDataStorage <Type> storage) { storage_ = storage; entityRelationshipFactory_ = new EntityRelationshipFactory(); entityPropertyBuilder_ = new EntityPropertyBuilder <TEntity>(storage_); }
public SqlEntityDeserializer(IModelDataStorage <Type> modelDataStorage, IStateManager stateManager) { modelDataStorage_ = modelDataStorage; stateManager_ = stateManager; }
public StateManager(IModelDataStorage <Type> modelDataStorage) { trackedEntities_ = new Dictionary <(Type, string), IInternalEntity <object> >(); modelDataStorage_ = modelDataStorage; entitiesToBeAdded_ = new Queue <IInternalEntity <object> >(); }
public EntityDataBuilder(IModelDataStorage <Type> storage, IEntityRelationship relationship) { storage_ = storage; relationship_ = relationship; }
public EntityNavigationBuilder(IModelDataStorage <Type> storage) { storage_ = storage; entityRelationshipFactory_ = new EntityRelationshipFactory(); }
public ModelBuilder(IModelDataStorage <Type> storage) { storage_ = storage; }
public EntityPropertyOptionsBuilder(IModelDataStorage <Type> storage, PropertyInfo property) { storage_ = storage; propertyInfo_ = property; }
public ChangeDetector(ITableNameProvider tableNameProvider, IModelDataStorage <Type> modelDataStorage) { tableNameProvider_ = tableNameProvider; modelDataStorage_ = modelDataStorage; }
public DatabaseCreationQueryTranslator(IModelDataStorage <Type> modelDataStorage) { modelDataStorage_ = modelDataStorage; }