Exemplo n.º 1
0
 public void Hydrate(Project project, ProjectDTO projectDTO)
 {
     project.Name                         = projectDTO.Name;
     project.RootPath                     = projectDTO.RootPath;
     project.Namespace                    = projectDTO.Namespace;
     project.AngularModuleName            = projectDTO.AngularModuleName;
     project.AngularDirectivePrefix       = projectDTO.AngularDirectivePrefix;
     project.Bootstrap3                   = projectDTO.Bootstrap3;
     project.ExcludeTypes                 = projectDTO.ExcludeTypes;
     project.UrlPrefix                    = projectDTO.UrlPrefix;
     project.UseStringAuthorizeAttributes = projectDTO.UseStringAuthorizeAttributes;
 }
Exemplo n.º 2
0
 public void Hydrate(Project project, ProjectDTO projectDTO)
 {
     project.Name                   = projectDTO.Name;
     project.WebPath                = projectDTO.WebPath;
     project.Namespace              = projectDTO.Namespace;
     project.AngularModuleName      = projectDTO.AngularModuleName;
     project.AngularDirectivePrefix = projectDTO.AngularDirectivePrefix;
     project.UserFilterFieldName    = projectDTO.UserFilterFieldName;
     project.DbContextVariable      = projectDTO.DbContextVariable;
     project.ModelsPath             = projectDTO.ModelsPath;
     project.Notes                  = projectDTO.Notes;
 }
Exemplo n.º 3
0
        public ProjectDTO Create(Project project)
        {
            if (project == null)
            {
                return(null);
            }

            var projectDTO = new ProjectDTO();

            projectDTO.ProjectId                    = project.ProjectId;
            projectDTO.Name                         = project.Name;
            projectDTO.RootPath                     = project.RootPath;
            projectDTO.Namespace                    = project.Namespace;
            projectDTO.AngularModuleName            = project.AngularModuleName;
            projectDTO.AngularDirectivePrefix       = project.AngularDirectivePrefix;
            projectDTO.Bootstrap3                   = project.Bootstrap3;
            projectDTO.ExcludeTypes                 = project.ExcludeTypes;
            projectDTO.UrlPrefix                    = project.UrlPrefix;
            projectDTO.UseStringAuthorizeAttributes = project.UseStringAuthorizeAttributes;

            return(projectDTO);
        }
Exemplo n.º 4
0
        public ProjectDTO Create(Project project)
        {
            if (project == null)
            {
                return(null);
            }

            var projectDTO = new ProjectDTO();

            projectDTO.ProjectId              = project.ProjectId;
            projectDTO.Name                   = project.Name;
            projectDTO.WebPath                = project.WebPath;
            projectDTO.Namespace              = project.Namespace;
            projectDTO.AngularModuleName      = project.AngularModuleName;
            projectDTO.AngularDirectivePrefix = project.AngularDirectivePrefix;
            projectDTO.UserFilterFieldName    = project.UserFilterFieldName;
            projectDTO.DbContextVariable      = project.DbContextVariable;
            projectDTO.ModelsPath             = project.ModelsPath;
            projectDTO.Notes                  = project.Notes;

            return(projectDTO);
        }