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

            var entity = new APP_ACCESO();

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

            dto.OnEntity(entity);

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