Beispiel #1
0
 public static string GetDtoFileText(ClassPath classPath, Entity entity, Dto dto)
 {
     if (dto == Dto.ReadParamaters)
     {
         return(DtoFileTextGenerator.GetReadParameterDtoText(classPath.ClassNamespace, entity, dto));
     }
     else
     {
         return(DtoFileTextGenerator.GetDtoText(classPath, entity, dto));
     }
 }
Beispiel #2
0
 public static string GetDtoFileText(string solutionDirectory, ClassPath classPath, Entity entity, Dto dto, string projectBaseName)
 {
     if (dto == Dto.ReadParamaters)
     {
         return(DtoFileTextGenerator.GetReadParameterDtoText(solutionDirectory, classPath.ClassNamespace, entity, dto, projectBaseName));
     }
     else
     {
         return(DtoFileTextGenerator.GetDtoText(classPath, entity, dto, projectBaseName));
     }
 }