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(); }
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()); }
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(); }
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()); }