public EnigmaContext(IEnigmaConnection engineConnection, bool ownsConnection) { _engineConnection = engineConnection; _ownsConnection = ownsConnection; _details = ReflectionManager.GetDetails(this.GetType(), model => { OnModelCreating(new ModelBuilder(model)); _engine = _engineConnection.CreateEngine(model); _engine.Synchronize(); }); if (_engine == null) _engine = _engineConnection.CreateEngine(_details.Model); _changeManager = new ChangeManager(_details.Model); InitializeSets(); }
public EnigmaUnitOfWork(IEnigmaConnection connection) { _connection = connection; }
public EnigmaQueryExecutor(IEnigmaConnection connection) { _connection = connection; }
public EnigmaContext(IEnigmaConnection engineConnection) : this(engineConnection, false) { }