Exemple #1
0
 public MainDto(int Id, int ParentId, String Title, MainTypeDto MainType, List <TimeRegistrationDto> TimeRegistrations, bool cache, bool expanded, bool lazy)
 {
     key               = Id;
     parentId          = ParentId;
     title             = Title;
     mainType          = MainType;
     timeRegistrations = TimeRegistrations;
     this.cache        = cache;
     this.lazy         = lazy;
     this.expanded     = expanded;
 }
     public MainDto(int Id, int ParentId, String Title, MainTypeDto MainType, List<TimeRegistrationDto> TimeRegistrations, bool cache, bool expanded, bool lazy)
     {
         key = Id;
         parentId = ParentId;
         title = Title;
         mainType = MainType;
         timeRegistrations = TimeRegistrations;
         this.cache = cache;
         this.lazy = lazy;
         this.expanded = expanded;
 }
        public static MainTypeDto ToDTO(this MainTypeRecord entity)
        {
            if (entity == null) return null;

            var dto = new MainTypeDto();

            dto.key = entity.Id;
            dto.title = entity.Title;

            entity.OnDTO(dto);

            return dto;
        }
Exemple #4
0
        public static MainTypeDto ToDTO(this MainTypeRecord entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new MainTypeDto();

            dto.key   = entity.Id;
            dto.title = entity.Title;

            entity.OnDTO(dto);

            return(dto);
        }
Exemple #5
0
        public static MainTypeRecord ToEntity(this MainTypeDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new MainTypeRecord();

            entity.Id    = dto.key;
            entity.Title = dto.title;

            dto.OnEntity(entity);

            return(entity);
        }
 static partial void OnDTO(this MainTypeRecord entity, MainTypeDto dto);
Exemple #7
0
 static partial void OnDTO(this MainTypeRecord entity, MainTypeDto dto);
Exemple #8
0
 static partial void OnEntity(this MainTypeDto dto, MainTypeRecord entity);