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

            var dto = new identitystringDto();

            dto.Id         = entity.Id;
            dto.CombinedId = entity.CombinedId;
            dto.Nombre     = entity.Nombre;

            entity.OnDTO(dto);

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

            var entity = new identitystring();

            entity.Id         = dto.Id;
            entity.CombinedId = dto.CombinedId;
            entity.Nombre     = dto.Nombre;

            dto.OnEntity(entity);

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