public PostgreSqlDbContext(string connectionString = "") { var dbFactory = new PostgreSqlFactory(); DbHelper.ConnectionString = connectionString; DbHelper.DbFactory = dbFactory; DbBuilder = new PostgreSqlBuilder(); DbBuilder.DbFactory = dbFactory; }
public PostgreSqlDbContext(string connectionString = "") { var dbFactory = new PostgreSqlFactory(); DbHelper.ConnectionString = connectionString; DbHelper.DbFactory = dbFactory; DbBuilder = new PostgreSqlBuilder(); DbBuilder.DbFactory = dbFactory; DbBuilder.CurrentDbType = SmartDbTypes.PostgreSql; CurrentDbType = SmartDbTypes.PostgreSql; }