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; }
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); }
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);
static partial void OnEntity(this MainTypeDto dto, MainTypeRecord entity);