Example #1
0
        /// <summary>
        /// Converts this instance of <see cref="TICKETS1"/> to an instance of <see cref="TICKETS1_DTO"/>.
        /// </summary>
        /// <param name="entity"><see cref="TICKETS1"/> to convert.</param>
        public static TICKETS1_DTO ToModel(this TICKETS1 entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new TICKETS1_DTO();

            dto.Id                    = entity.Id;
            dto.Titulo                = entity.Titulo;
            dto.Descripcion           = entity.Descripcion;
            dto.IssueId               = entity.IssueId;
            dto.UserRequestId         = entity.UserRequestId;
            dto.RequestDepartamentId  = entity.RequestDepartamentId;
            dto.DestinationDivisionId = entity.DestinationDivisionId;
            dto.Estatus               = entity.Estatus;
            dto.OrganizacionId        = entity.OrganizacionId;
            dto.UserAssigned          = entity.UserAssigned;
            dto.Fecha_Solicitud       = entity.Fecha_Solicitud;
            dto.Fecha_Correcion       = entity.Fecha_Correcion;
            dto.Fecha_Modificacion    = entity.Fecha_Modificacion;
            dto.Fecha_Vencimiento     = entity.Fecha_Vencimiento;

            entity.OnDTO(dto);

            return(dto);
        }
Example #2
0
        /// <summary>
        /// Converts this instance of <see cref="TICKETS1_DTO"/> to an instance of <see cref="TICKETS1"/>.
        /// </summary>
        /// <param name="dto"><see cref="TICKETS1_DTO"/> to convert.</param>
        public static TICKETS1 ToTable(this TICKETS1_DTO dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new TICKETS1();

            entity.Id                    = dto.Id;
            entity.Titulo                = dto.Titulo;
            entity.Descripcion           = dto.Descripcion;
            entity.IssueId               = dto.IssueId;
            entity.UserRequestId         = dto.UserRequestId;
            entity.RequestDepartamentId  = dto.RequestDepartamentId;
            entity.DestinationDivisionId = dto.DestinationDivisionId;
            entity.Estatus               = dto.Estatus;
            entity.OrganizacionId        = dto.OrganizacionId;
            entity.UserAssigned          = dto.UserAssigned;
            entity.Fecha_Solicitud       = dto.Fecha_Solicitud;
            entity.Fecha_Correcion       = dto.Fecha_Correcion;
            entity.Fecha_Modificacion    = dto.Fecha_Modificacion;
            entity.Fecha_Vencimiento     = dto.Fecha_Vencimiento;

            dto.OnEntity(entity);

            return(entity);
        }
Example #3
0
 /// <summary>
 /// Invoked when <see cref="ToTable"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="TICKETS1"/> converted from <see cref="TICKETS1_DTO"/>.</param>
 static partial void OnEntity(this TICKETS1_DTO dto, TICKETS1 entity);
Example #4
0
 /// <summary>
 /// Invoked when <see cref="ToModel"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="TICKETS1_DTO"/> converted from <see cref="TICKETS1"/>.</param>
 static partial void OnDTO(this TICKETS1 entity, TICKETS1_DTO dto);