public INLORMDb GetDb(string ConnectString, SupportedDb dbType) { switch (dbType) { case SupportedDb.MSSQL: return(new NLORMMSSQLDb(ConnectString)); case SupportedDb.SQLITE: return(new NLORMSQLiteDb(ConnectString)); case SupportedDb.MYSQL: return(new NLORMMySqlDb(ConnectString)); default: throw new NLORMException("N", "Not SupportDB"); } }
public IMicroORMDb GetDb(string ConnectString, SupportedDb dbType) { switch (dbType) { case SupportedDb.MSSQL: return(new MicroORMMsSqlDb(ConnectString)); case SupportedDb.POSTGRESQL: return(null); //return new MicroORMPostgreSqlDb(ConnectString); case SupportedDb.MYSQL: //return null; return(new MicroORMMySqlDb(ConnectString)); default: throw new MicroORMException("N", "Not SupportDB"); } }
public static INLORMDb GetDb(string connectionString, SupportedDb dbType) { return(NLORMFactory.Instance.GetDb(connectionString, dbType)); }