Ejemplo n.º 1
0
        /// <summary>
        /// Converts this instance of <see cref="codigoempresa"/> to an instance of <see cref="codigoempresaDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="codigoempresa"/> to convert.</param>
        public static codigoempresaDto ToDTO(this codigoempresa entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new codigoempresaDto();

            dto.v_CodigoEmpresaId = entity.v_CodigoEmpresaId;
            dto.v_CIIUId          = entity.v_CIIUId;
            dto.v_Name            = entity.v_Name;
            dto.i_IsDeleted       = entity.i_IsDeleted;
            dto.i_InsertUserId    = entity.i_InsertUserId;
            dto.d_InsertDate      = entity.d_InsertDate;
            dto.i_UpdateUserId    = entity.i_UpdateUserId;
            dto.d_UpdateDate      = entity.d_UpdateDate;

            entity.OnDTO(dto);

            return(dto);
        }