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