Ejemplo n.º 1
0
 static string GenBatchMethod(TableViewBase pTable, CodeGeneratorCommon.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();
 }
Ejemplo n.º 2
0
 static string GenMethod(TableViewBase pTable, CodeGeneratorCommon.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();
 }