Definition at line 29 of file MySqlFactory.cs.
Ntp.Data.Provider.MySqlFactory.MySqlFactory |
( |
| ) |
|
|
inlinepackage |
static string Ntp.Data.Provider.MySqlFactory.BuildConnectionString |
( |
bool |
includeName = true | ) |
|
|
inlinestaticprivate |
Definition at line 101 of file MySqlFactory.cs.
References b.
106 var
b =
new StringBuilder();
107 b.Append($
"Server={Config.Host};");
110 b.Append($
"Port={Config.Port};");
113 b.Append($
"Database={Config.Name};");
115 b.Append($
"Uid={Config.User};");
116 b.Append($
"Pwd={Config.Pass};");
119 b.Append(
@"SSL Mode=Required;");
122 b.Append($
"CertificateFile={Config.CertificateFile};");
125 b.Append($
"CertificatePassword={Config.CertificatePassword};");
128 b.Append($
"Connection Timeout={Config.ConnectionTimeout.Value};");
string CertificatePassword
static IDatabaseConfiguration Config
override IDbCommand Ntp.Data.Provider.MySqlFactory.CreateCommand |
( |
| ) |
|
|
inlinevirtual |
override IDbConnection Ntp.Data.Provider.MySqlFactory.CreateConnection |
( |
| ) |
|
|
inlinevirtual |
override void Ntp.Data.Provider.MySqlFactory.CreateDatabase |
( |
| ) |
|
|
inlinevirtual |
Implements Ntp.Data.Provider.SqlDatabaseFactory.
Definition at line 55 of file MySqlFactory.cs.
60 command.Connection = connection;
abstract IDbCommand CreateCommand()
override IDbConnection CreateGenericConnection()
static SqlDatabaseFactory Instance
static IDatabaseConfiguration Config
const string CreateDatabaseSql
override IDbConnection Ntp.Data.Provider.MySqlFactory.CreateGenericConnection |
( |
| ) |
|
|
inlinevirtual |
override IDbDataParameter Ntp.Data.Provider.MySqlFactory.CreateParameter |
( |
string |
name, |
|
|
object |
value |
|
) |
| |
|
inlinevirtual |
override string Ntp.Data.Provider.MySqlFactory.DateAddMinutes |
( |
string |
dateColumn, |
|
|
string |
minuteColumn |
|
) |
| |
|
inlinevirtual |
override string Ntp.Data.Provider.MySqlFactory.PrepareCheckTableSql |
( |
string |
table | ) |
|
|
inlinevirtual |
override string Ntp.Data.Provider.MySqlFactory.PrepareCreateTableSql |
( |
string |
sql | ) |
|
|
inlinevirtual |
override string Ntp.Data.Provider.MySqlFactory.PrepareInsertSql |
( |
string |
sql | ) |
|
|
inlinevirtual |
override string Ntp.Data.Provider.MySqlFactory.PrepareSql |
( |
string |
sql | ) |
|
|
inlinevirtual |
const string Ntp.Data.Provider.MySqlFactory.CheckTableSql |
|
private |
Initial value:=
"SELECT table_name " +
"FROM information_schema.tables " +
"WHERE table_schema = '{0}' " +
"AND table_name = '{1}';"
Definition at line 38 of file MySqlFactory.cs.
const string Ntp.Data.Provider.MySqlFactory.CreateDatabaseSql |
|
private |
Initial value:=
"CREATE DATABASE IF NOT EXISTS {0};"
Definition at line 35 of file MySqlFactory.cs.
The documentation for this class was generated from the following file: