private static SelectOperation GetOperation(MapperDb db) { SelectOperation operation; switch (db.DatabaseType) { case DatabaseType.MySql: operation = new MySqlSelect(); break; case DatabaseType.SqlServer: operation = new SqlServerSelect(); break; default: operation = new PostgreSQLSelect(); break; } return(operation); }
__tuple <SqlStatus_, AccountB> _LoginAccountB(string nAccountName) { AccountB accountB_ = new AccountB(); accountB_._setMgrId(mId); accountB_._setAccountName(nAccountName); MySqlSelect mySqlSelect_ = new MySqlSelect(); mySqlSelect_._selectStream(accountB_._streamName()); accountB_._serialize(mySqlSelect_); MySqlWhere mySqlWhere_ = new MySqlWhere(); mySqlWhere_._selectStream(accountB_._loginWhere()); MySqlSingleton mySqlSingleton_ = __singleton <MySqlSingleton> ._instance(); SqlStatus_ sqlStatus_ = mySqlSingleton_._runSql(mySqlSelect_, mySqlWhere_, accountB_); return(new __tuple <SqlStatus_, AccountB>(sqlStatus_, accountB_)); }