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

            var dto = new APP_ACCESODTO();

            dto.IDACCESOAPP = entity.IDACCESOAPP;
            dto.IDAPP = entity.IDAPP;
            dto.IDROL = entity.IDROL;

            entity.OnDTO(dto);

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