Ejemplo n.º 1
0
        public EmployeePositionDTO(EmployeePosition entity)
        {
            Id         = entity.Id;
            Position   = entity.Position;
            AppDefault = entity.AppDefault;

            Initiliazing(entity);
        }
Ejemplo n.º 2
0
        public virtual EmployeePosition ToEmployeePosition()
        {
            var entity = new EmployeePosition();

            entity.Id         = Id;
            entity.Position   = Position;
            entity.AppDefault = AppDefault;

            Converting(entity);

            return(entity);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Clones all properties in a new EmployeePosition instance,
        /// except PrimaryKey(s)
        /// </summary>
        /// <returns>New EmployeePosition instance</returns>
        public EmployeePosition Clone()
        {
            var clone = new EmployeePosition();

            clone.Position   = Position;
            clone.AppDefault = AppDefault;
            clone.CreateDate = CreateDate;
            clone.CreatorId  = CreatorId;
            clone.CreatorIp  = CreatorIp;

            Cloning(clone);

            return(clone);
        }
Ejemplo n.º 4
0
 partial void Converting(EmployeePosition entity);
Ejemplo n.º 5
0
 partial void Initiliazing(EmployeePosition entity);
Ejemplo n.º 6
0
 // Use below function in a partial class file (eg. EmployeePosition.part.cs)
 // to add more complexity to clone
 partial void Cloning(EmployeePosition clone);