public IDbDataParameter GetDbDataParameter(string paraName, string originDbType, int paraLen) { if (paraLen == 0) { return(new OleDbParameter(paraName, DBTypeConverter.GetOleDbTypeByOriginName(originDbType))); } return(new OleDbParameter(paraName, DBTypeConverter.GetOleDbTypeByOriginName(originDbType), paraLen)); }
public IDbDataParameter MakeOutParam(string ParamName, string originDbType, int Size) { return(MakeParam(ParamName, DBTypeConverter.GetOleDbTypeByOriginName(originDbType), Size, ParameterDirection.Output, null)); }
public IDbDataParameter MakeInParam(string ParamName, string originDbType, object Value, int Size) { return(MakeParam(ParamName, DBTypeConverter.GetOleDbTypeByOriginName(originDbType), Size, ParameterDirection.Input, Value)); }