public static object GetDbDataType(string strDataType, MyDbType inType, MyDbType outType) { object dbdataType = null; IDbSelector selector = GetDbSelector(inType); if (selector != null) { dbdataType = selector.GetDbDataType(strDataType, outType); } return(dbdataType); }
public object GetDbDataType(string strDataType, MyDbType outType) { try { OracleDbType dbtype = OracleDbTypeDics[strDataType.ToUpper()]; if (outType == MyDbType.Oracle) { return(dbtype); } object obj = null; IDbSelector selector = MyDbHelper.GetDbSelector(outType); if (selector != null) { obj = selector.GetDbDataType(dbtype); } return(obj); } catch (Exception ex) { return(null); } }