Пример #1
0
 static string GenBatchMethod(Table pTable, MethodActionType t)
 {
     StringBuilder wMethod = new StringBuilder(FwkGeneratorHelper.TemplateDocument.GetTemplate("MethodBatch").Content);
     wMethod.Replace("[SummaryParams]", GenParametersSummary(t, pTable));
     wMethod.Replace("[ParamArgs]", GenMethodParameters(t, pTable));
     wMethod.Replace("[MethodName]", t.ToString());
     wMethod.Replace("[StoredProcedureName]", GetSPName(pTable, t));
     wMethod.Replace("[Parameters]", GenSPParameters_Batch(pTable, t));
     return wMethod.ToString();
 }
Пример #2
0
        static string GenBatchMethod(Table pTable, MethodActionType t)
        {
            StringBuilder wMethod = new StringBuilder(FwkGeneratorHelper.TemplateDocument.GetTemplate("MethodBatch").Content);

            wMethod.Replace("[SummaryParams]", GenParametersSummary(t, pTable));
            wMethod.Replace("[ParamArgs]", GenMethodParameters(t, pTable));
            wMethod.Replace("[MethodName]", t.ToString());
            wMethod.Replace("[StoredProcedureName]", GetSPName(pTable, t));
            wMethod.Replace("[Parameters]", GenSPParameters_Batch(pTable, t));
            return(wMethod.ToString());
        }
Пример #3
0
 static string GenMethod(Table pTable, MethodActionType t)
 {
     StringBuilder wMethod = new StringBuilder(_Method_tt);
     wMethod.Replace("[SummaryParams]", GenParametersSummary(t, pTable));
     wMethod.Replace("[ParamArgs]", GenMethodParameters(t, pTable));
     wMethod.Replace("[MethodName]", t.ToString());
     wMethod.Replace("[RetType]", GetRetType(pTable, t));
     wMethod.Replace("[StoredProcedureName]", GetSPName(pTable, t));
     wMethod.Replace("[Parameters]", GenSPParameters(pTable, t));
     wMethod.Replace("[Declarations]", GenDeclaration(pTable, t));
     wMethod.Replace("[Return]", GenMethodReturn(pTable, t));
     return wMethod.ToString();
 }
Пример #4
0
        static string GenMethod(Table pTable, MethodActionType t)
        {
            StringBuilder wMethod = new StringBuilder(_Method_tt);

            wMethod.Replace("[SummaryParams]", GenParametersSummary(t, pTable));
            wMethod.Replace("[ParamArgs]", GenMethodParameters(t, pTable));
            wMethod.Replace("[MethodName]", t.ToString());
            wMethod.Replace("[RetType]", GetRetType(pTable, t));
            wMethod.Replace("[StoredProcedureName]", GetSPName(pTable, t));
            wMethod.Replace("[Parameters]", GenSPParameters(pTable, t));
            wMethod.Replace("[Declarations]", GenDeclaration(pTable, t));
            wMethod.Replace("[Return]", GenMethodReturn(pTable, t));
            return(wMethod.ToString());
        }