public static TimeRegistrationRecord ToEntity(this TimeRegistrationDto dto) { if (dto == null) return null; var entity = new TimeRegistrationRecord(); entity.Id = dto.key; entity.MainId = dto.mainId; entity.Date = dto.date; entity.Value = dto.value; dto.OnEntity(entity); return entity; }
static partial void OnEntity(this TimeRegistrationDto dto, TimeRegistrationRecord entity);