CreateConnection() public static méthode

public static CreateConnection ( ) : NpgsqlConnection
Résultat Npgsql.NpgsqlConnection
Exemple #1
0
 public SqlCommand(string sql)
 {
     _command = new NpgsqlCommand(sql, Database.CreateConnection());
 }
Exemple #2
0
 public SqlCommand(string sql, NpgsqlConnection connection = null, NpgsqlTransaction transaction = null)
 {
     _command = new NpgsqlCommand(sql, connection ?? Database.CreateConnection(), transaction);
 }