CreateConnection() 공개 정적인 메소드

public static CreateConnection ( ) : NpgsqlConnection
리턴 Npgsql.NpgsqlConnection
예제 #1
0
 public SqlCommand(string sql)
 {
     _command = new NpgsqlCommand(sql, Database.CreateConnection());
 }
예제 #2
0
 public SqlCommand(string sql, NpgsqlConnection connection = null, NpgsqlTransaction transaction = null)
 {
     _command = new NpgsqlCommand(sql, connection ?? Database.CreateConnection(), transaction);
 }