Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 partial void Converting(ProcessStep entity);
Ejemplo n.º 4
0
 partial void Initiliazing(ProcessStep entity);
Ejemplo n.º 5
0
 // Use below function in a partial class file (eg. ProcessStep.part.cs)
 // to add more complexity to clone
 partial void Cloning(ProcessStep clone);