public ProcessStepDTO(ProcessStep entity) { Id = entity.Id; Title = entity.Title; IsCompleted = entity.IsCompleted; Description = entity.Description; DisplayOrder = entity.DisplayOrder; ProcessId = entity.ProcessId; TemplateId = entity.TemplateId; TargetDate = entity.TargetDate; ForecastDate = entity.ForecastDate; RealizedDate = entity.RealizedDate; IsApproved = entity.IsApproved; ApproveDate = entity.ApproveDate; Initiliazing(entity); }
public virtual ProcessStep ToProcessStep() { var entity = new ProcessStep(); entity.Id = Id; entity.Title = Title; entity.IsCompleted = IsCompleted; entity.Description = Description; entity.DisplayOrder = DisplayOrder; entity.ProcessId = ProcessId; entity.TemplateId = TemplateId; entity.TargetDate = TargetDate; entity.ForecastDate = ForecastDate; entity.RealizedDate = RealizedDate; entity.IsApproved = IsApproved; entity.ApproveDate = ApproveDate; Converting(entity); return(entity); }
partial void Converting(ProcessStep entity);
partial void Initiliazing(ProcessStep entity);
// Use below function in a partial class file (eg. ProcessStep.part.cs) // to add more complexity to clone partial void Cloning(ProcessStep clone);