/// <summary> /// Modify this method to actually return the kind of DataBase you need /// </summary> /// <returns>A </returns> private Sql.DataBase DataBase_Setup() { //modify this to return the right database you wish to use OKHOSTING.Core.Net4.AppConfig config = new Core.Net4.AppConfig(); string connectionString = (string) config.GetValue("connectionString", typeof(string)); return new MySql.DataBase() { ConnectionString = connectionString }; }
/// <summary> /// Modify this method to actually return the kind of DataBase you need /// </summary> /// <returns>A </returns> private Sql.DataBase DataBase_Setup() { //modify this to return the right database you wish to use OKHOSTING.Core.Net4.AppConfig config = new Core.Net4.AppConfig(); string connectionString = (string)config.GetValue("connectionString", typeof(string)); return(new MySql.DataBase() { ConnectionString = connectionString }); }
private static DataBase DataBase_Setup() { Core.Net4.AppConfig config = new Core.Net4.AppConfig(); return new DataBase(new Sql.Net4.MySql.DataBase() { ConnectionString = (string)config.GetValue("connectionString", typeof(string)) }, new Sql.MySql.SqlGenerator()); }