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

            var entity = new APPS();

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

            dto.OnEntity(entity);

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