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