Пример #1
0
//取得存储过程参数
        public string GetProcConstructorParameters(SchemaExplorer.CommandSchema param)
        {
            string res = "";

            foreach (ParameterSchema perameter in param.InputParameters)
            {
                res += GetCSharpVariableTypeProc(perameter) + " " + GetCamelCaseName(perameter.Name.Substring(1, perameter.Name.Length - 1)) + ",\n\t\t\t";
            }
            return(res.Substring(0, res.Length - 5));
        }
Пример #2
0
        public string GetProcAssignValue(SchemaExplorer.CommandSchema param)
        {
            string res = "";

            foreach (ParameterSchema perameter in param.InputParameters)
            {
                res += GetMemberVariableNameProc(perameter) + "=" + GetCamelCaseName(perameter.Name.Substring(1, perameter.Name.Length - 1)) + ";\n\t\t\t";
            }
            return(res);
        }