/// <summary> /// 获取当前函数对象 /// </summary> /// <returns></returns> internal static SqlFunBase GetSqlFun() { SqlFunBase sqlFun; switch (MDbType) { case DbHelper.DbTypeEnum.Mysql: sqlFun = new SqlFunBase(); break; case DbHelper.DbTypeEnum.Sqlite: sqlFun = new SqLiteFunction(); break; case DbHelper.DbTypeEnum.Mssql: sqlFun = new MsSqlFunction(); break; case DbHelper.DbTypeEnum.Oracle: sqlFun = new OracleFunction(); break; case DbHelper.DbTypeEnum.None: sqlFun = new SqlFunBase(); break; default: sqlFun = new SqlFunBase(); break; } return(sqlFun); }
/// <summary> /// 获取当前函数对象 /// </summary> /// <returns></returns> public static SqlFunBase GetSqlFun(ORM.DbTypeEnum mDbType = ORM.DbTypeEnum.None) { SqlFunBase sqlFun; switch (mDbType) { case ORM.DbTypeEnum.Mysql: sqlFun = new SqlFunBase(); break; case ORM.DbTypeEnum.SqlIte: sqlFun = new SqLiteFunction(); break; case ORM.DbTypeEnum.Mssql: sqlFun = new MsSqlFunction(); break; case ORM.DbTypeEnum.Oracle: sqlFun = new OracleFunction(); break; case ORM.DbTypeEnum.None: sqlFun = new SqlFunBase(); break; default: sqlFun = new SqlFunBase(); break; } return(sqlFun); }