コード例 #1
0
        /// <summary>
        /// Converts this instance of <see cref="Grupos"/> to an instance of <see cref="GRUPOS"/>.
        /// </summary>
        /// <param name="dto"><see cref="Grupos"/> to convert.</param>
        public static GRUPOS ToTable(this Grupos dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new GRUPOS();

            entity.Id             = dto.Id;
            entity.Descripcion    = dto.Descripcion;
            entity.Fecha_Creacion = DateTime.Now;

            dto.OnEntity(entity);

            return(entity);
        }