public static CreateConnection ( ) : |
||
return |
public SqlCommand(string sql) { _command = new NpgsqlCommand(sql, Database.CreateConnection()); }
public SqlCommand(string sql, NpgsqlConnection connection = null, NpgsqlTransaction transaction = null) { _command = new NpgsqlCommand(sql, connection ?? Database.CreateConnection(), transaction); }