25 namespace Ntp.Data.Provider
42 throw new NotSupportedException(
"Unknown SQL data provider was configured.");
44 throw new NotSupportedException(
"No SQL data provider was configured.");
49 public abstract string PrepareCheckTableSql(
string table);
51 public abstract IDbConnection CreateConnection();
53 public abstract IDbConnection CreateGenericConnection();
55 public abstract IDbCommand CreateCommand();
57 public abstract IDbDataParameter CreateParameter(
string name,
object value);
59 public abstract void CreateDatabase();
61 public abstract string DateAddMinutes(
string dateColumn,
string minuteColumn);
65 Config = factoryConfiguration;
68 public abstract string PrepareCreateTableSql(
string sql);
70 public abstract string PrepareInsertSql(
string sql);
72 public abstract string PrepareSql(
string sql);
static void Initialize(IDatabaseConfiguration factoryConfiguration)
SqlDatabaseProvider Provider
static IDatabaseConfiguration Config