public CHXDatabaseConnection(CHXDatabaseParameters connectionParameters, ICHXDatabase manager) { _manager = manager; _connectionParameters = connectionParameters; InitMethod(); LoadVersion(); }
public CHXPostgreSql(CHXDatabaseParameters connectionParameters, ICHXDatabase manager) : base(connectionParameters, manager) { }
public static CHXDatabaseConnection GetDatabase(CHXDatabaseParameters connectionParameters, CHXDatabaseType?databaseType, ICHXDatabase manager) { lock (_locker) { switch (databaseType) { case CHXDatabaseType.PostgreSql: return(new CHXPostgreSql(connectionParameters, manager)); default: return(null); } } }