C# Class Nomad.Data.Database

Inheritance: IDatabase
Exibir arquivo Open project: marceldupr/Nomad

Public Methods

Method Description
Database ( string connectionString, ILogger logger ) : System
Database ( string server, string database, ILogger logger ) : System
Database ( string server, string database, string user, string password, ILogger logger ) : System
ExecuteNonQuery ( string statement ) : void
ExecuteScalar ( string script ) : object
ExecuteSqlInTransaction ( string scriptContents ) : void

Private Methods

Method Description
EnsureDatabase ( string server, string database ) : string
EnsureDatabase ( string server, string database, string user, string password ) : string
SplitSqlOnGo ( string sql ) : IEnumerable

Method Details

Database() public method

public Database ( string connectionString, ILogger logger ) : System
connectionString string
logger ILogger
return System

Database() public method

public Database ( string server, string database, ILogger logger ) : System
server string
database string
logger ILogger
return System

Database() public method

public Database ( string server, string database, string user, string password, ILogger logger ) : System
server string
database string
user string
password string
logger ILogger
return System

ExecuteNonQuery() public method

public ExecuteNonQuery ( string statement ) : void
statement string
return void

ExecuteScalar() public method

public ExecuteScalar ( string script ) : object
script string
return object

ExecuteSqlInTransaction() public method

public ExecuteSqlInTransaction ( string scriptContents ) : void
scriptContents string
return void