Beispiel #1
0
 public void Hydrate(Entity entity, EntityDTO entityDTO)
 {
     entity.ProjectId                       = entityDTO.ProjectId;
     entity.Name                            = entityDTO.Name;
     entity.PluralName                      = entityDTO.PluralName;
     entity.FriendlyName                    = entityDTO.FriendlyName;
     entity.PluralFriendlyName              = entityDTO.PluralFriendlyName;
     entity.EntityType                      = entityDTO.EntityType;
     entity.PartialEntityClass              = entityDTO.PartialEntityClass;
     entity.PartialControllerClass          = entityDTO.PartialControllerClass;
     entity.Breadcrumb                      = entityDTO.Breadcrumb;
     entity.PreventModelDeployment          = entityDTO.PreventModelDeployment;
     entity.PreventDTODeployment            = entityDTO.PreventDTODeployment;
     entity.PreventDbContextDeployment      = entityDTO.PreventDbContextDeployment;
     entity.PreventControllerDeployment     = entityDTO.PreventControllerDeployment;
     entity.PreventBundleConfigDeployment   = entityDTO.PreventBundleConfigDeployment;
     entity.PreventAppRouterDeployment      = entityDTO.PreventAppRouterDeployment;
     entity.PreventApiResourceDeployment    = entityDTO.PreventApiResourceDeployment;
     entity.PreventListHtmlDeployment       = entityDTO.PreventListHtmlDeployment;
     entity.PreventListTypeScriptDeployment = entityDTO.PreventListTypeScriptDeployment;
     entity.PreventEditHtmlDeployment       = entityDTO.PreventEditHtmlDeployment;
     entity.PreventEditTypeScriptDeployment = entityDTO.PreventEditTypeScriptDeployment;
     entity.AuthorizationType               = entityDTO.AuthorizationType;
     entity.Exclude                         = entityDTO.Exclude;
 }
Beispiel #2
0
 public void Hydrate(Entity entity, EntityDTO entityDTO)
 {
     entity.ProjectId                              = entityDTO.ProjectId;
     entity.Name                                   = entityDTO.Name;
     entity.PluralName                             = entityDTO.PluralName;
     entity.FriendlyName                           = entityDTO.FriendlyName;
     entity.PluralFriendlyName                     = entityDTO.PluralFriendlyName;
     entity.EntityType                             = entityDTO.EntityType;
     entity.PartialEntityClass                     = entityDTO.PartialEntityClass;
     entity.PartialControllerClass                 = entityDTO.PartialControllerClass;
     entity.Breadcrumb                             = entityDTO.Breadcrumb;
     entity.PreventModelDeployment                 = entityDTO.PreventModelDeployment;
     entity.PreventDTODeployment                   = entityDTO.PreventDTODeployment;
     entity.PreventDbContextDeployment             = entityDTO.PreventDbContextDeployment;
     entity.PreventControllerDeployment            = entityDTO.PreventControllerDeployment;
     entity.PreventBundleConfigDeployment          = entityDTO.PreventBundleConfigDeployment;
     entity.PreventAppRouterDeployment             = entityDTO.PreventAppRouterDeployment;
     entity.PreventApiResourceDeployment           = entityDTO.PreventApiResourceDeployment;
     entity.PreventListHtmlDeployment              = entityDTO.PreventListHtmlDeployment;
     entity.PreventListTypeScriptDeployment        = entityDTO.PreventListTypeScriptDeployment;
     entity.PreventEditHtmlDeployment              = entityDTO.PreventEditHtmlDeployment;
     entity.PreventEditTypeScriptDeployment        = entityDTO.PreventEditTypeScriptDeployment;
     entity.PreventAppSelectHtmlDeployment         = entityDTO.PreventAppSelectHtmlDeployment;
     entity.PreventAppSelectTypeScriptDeployment   = entityDTO.PreventAppSelectTypeScriptDeployment;
     entity.PreventSelectModalHtmlDeployment       = entityDTO.PreventSelectModalHtmlDeployment;
     entity.PreventSelectModalTypeScriptDeployment = entityDTO.PreventSelectModalTypeScriptDeployment;
     entity.AuthorizationType                      = entityDTO.AuthorizationType;
     entity.Exclude                                = entityDTO.Exclude;
     entity.ReturnOnSave                           = entityDTO.ReturnOnSave;
     entity.UseChildRoutes                         = entityDTO.UseChildRoutes;
     entity.PrimaryFieldId                         = entityDTO.PrimaryFieldId;
     entity.IconClass                              = entityDTO.IconClass;
     entity.UserFilterFieldPath                    = entityDTO.UserFilterFieldPath;
 }
Beispiel #3
0
        public EntityDTO Create(Entity entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var entityDTO = new EntityDTO();

            entityDTO.EntityId                               = entity.EntityId;
            entityDTO.ProjectId                              = entity.ProjectId;
            entityDTO.Name                                   = entity.Name;
            entityDTO.PluralName                             = entity.PluralName;
            entityDTO.FriendlyName                           = entity.FriendlyName;
            entityDTO.PluralFriendlyName                     = entity.PluralFriendlyName;
            entityDTO.EntityType                             = entity.EntityType;
            entityDTO.PartialEntityClass                     = entity.PartialEntityClass;
            entityDTO.PartialControllerClass                 = entity.PartialControllerClass;
            entityDTO.Breadcrumb                             = entity.Breadcrumb;
            entityDTO.PreventModelDeployment                 = entity.PreventModelDeployment;
            entityDTO.PreventDTODeployment                   = entity.PreventDTODeployment;
            entityDTO.PreventDbContextDeployment             = entity.PreventDbContextDeployment;
            entityDTO.PreventControllerDeployment            = entity.PreventControllerDeployment;
            entityDTO.PreventBundleConfigDeployment          = entity.PreventBundleConfigDeployment;
            entityDTO.PreventAppRouterDeployment             = entity.PreventAppRouterDeployment;
            entityDTO.PreventApiResourceDeployment           = entity.PreventApiResourceDeployment;
            entityDTO.PreventListHtmlDeployment              = entity.PreventListHtmlDeployment;
            entityDTO.PreventListTypeScriptDeployment        = entity.PreventListTypeScriptDeployment;
            entityDTO.PreventEditHtmlDeployment              = entity.PreventEditHtmlDeployment;
            entityDTO.PreventEditTypeScriptDeployment        = entity.PreventEditTypeScriptDeployment;
            entityDTO.PreventAppSelectHtmlDeployment         = entity.PreventAppSelectHtmlDeployment;
            entityDTO.PreventAppSelectTypeScriptDeployment   = entity.PreventAppSelectTypeScriptDeployment;
            entityDTO.PreventSelectModalHtmlDeployment       = entity.PreventSelectModalHtmlDeployment;
            entityDTO.PreventSelectModalTypeScriptDeployment = entity.PreventSelectModalTypeScriptDeployment;
            entityDTO.AuthorizationType                      = entity.AuthorizationType;
            entityDTO.Exclude                                = entity.Exclude;
            entityDTO.ReturnOnSave                           = entity.ReturnOnSave;
            entityDTO.UseChildRoutes                         = entity.UseChildRoutes;
            entityDTO.PrimaryFieldId                         = entity.PrimaryFieldId;
            entityDTO.IconClass                              = entity.IconClass;
            entityDTO.UserFilterFieldPath                    = entity.UserFilterFieldPath;
            entityDTO.PrimaryField                           = null;
            entityDTO.Project                                = Create(entity.Project);

            return(entityDTO);
        }
Beispiel #4
0
        public EntityDTO Create(Entity entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var entityDTO = new EntityDTO();

            entityDTO.EntityId                        = entity.EntityId;
            entityDTO.ProjectId                       = entity.ProjectId;
            entityDTO.Name                            = entity.Name;
            entityDTO.PluralName                      = entity.PluralName;
            entityDTO.FriendlyName                    = entity.FriendlyName;
            entityDTO.PluralFriendlyName              = entity.PluralFriendlyName;
            entityDTO.EntityType                      = entity.EntityType;
            entityDTO.PartialEntityClass              = entity.PartialEntityClass;
            entityDTO.PartialControllerClass          = entity.PartialControllerClass;
            entityDTO.Breadcrumb                      = entity.Breadcrumb;
            entityDTO.PreventModelDeployment          = entity.PreventModelDeployment;
            entityDTO.PreventDTODeployment            = entity.PreventDTODeployment;
            entityDTO.PreventDbContextDeployment      = entity.PreventDbContextDeployment;
            entityDTO.PreventControllerDeployment     = entity.PreventControllerDeployment;
            entityDTO.PreventBundleConfigDeployment   = entity.PreventBundleConfigDeployment;
            entityDTO.PreventAppRouterDeployment      = entity.PreventAppRouterDeployment;
            entityDTO.PreventApiResourceDeployment    = entity.PreventApiResourceDeployment;
            entityDTO.PreventListHtmlDeployment       = entity.PreventListHtmlDeployment;
            entityDTO.PreventListTypeScriptDeployment = entity.PreventListTypeScriptDeployment;
            entityDTO.PreventEditHtmlDeployment       = entity.PreventEditHtmlDeployment;
            entityDTO.PreventEditTypeScriptDeployment = entity.PreventEditTypeScriptDeployment;
            entityDTO.AuthorizationType               = entity.AuthorizationType;
            entityDTO.Exclude                         = entity.Exclude;
            entityDTO.Project                         = Create(entity.Project);

            return(entityDTO);
        }