Beispiel #1
0
        /// <summary>
        /// Converts this instance of <see cref="APPS"/> to an instance of <see cref="APPSDTO"/>.
        /// </summary>
        /// <param name="entity"><see cref="APPS"/> to convert.</param>
        public static APPSDTO ToDTO(this APPS entity)
        {
            if (entity == null) return null;

            var dto = new APPSDTO();

            dto.IDAPP = entity.IDAPP;
            dto.CODAPP = entity.CODAPP;
            dto.NOMAPP = entity.NOMAPP;
            dto.ESTADO = entity.ESTADO;

            entity.OnDTO(dto);

            return dto;
        }
Beispiel #2
0
        /// <summary>
        /// Invoked when <see cref="ToDTO"/> operation is about to return.
        /// </summary>
        /// <param name="dto"><see cref="APPSDTO"/> converted from <see cref="APPS"/>.</param>
partial         static void OnDTO(this APPS entity, APPSDTO dto);