Exemple #1
0
        public IDbDataParameter GetDbDataParameter(string paraName, string originDbType, int paraLen)
        {
            if (paraLen == 0)
            {
                return(new OracleParameter(paraName, DBTypeConverter.GetOracleTypeByOriginName(originDbType)));
            }

            return(new OracleParameter(paraName, DBTypeConverter.GetOracleTypeByOriginName(originDbType), paraLen));
        }
Exemple #2
0
 public IDbDataParameter MakeOutParam(string ParamName, string originDbType, int Size)
 {
     return(MakeParam(ParamName, DBTypeConverter.GetOracleTypeByOriginName(originDbType), Size, ParameterDirection.Output, null));
 }
Exemple #3
0
 public IDbDataParameter MakeInParam(string ParamName, string originDbType, object Value, int Size)
 {
     return(MakeParam(ParamName, DBTypeConverter.GetOracleTypeByOriginName(originDbType), Size, ParameterDirection.Input, Value));
 }