/// <summary>
        /// Converts this instance of <see cref="secuential"/> to an instance of <see cref="secuentialDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="secuential"/> to convert.</param>
        public static secuentialDto ToDTO(this secuential entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new secuentialDto();

            dto.i_NodeId       = entity.i_NodeId;
            dto.i_TableId      = entity.i_TableId;
            dto.i_SecuentialId = entity.i_SecuentialId;

            entity.OnDTO(dto);

            return(dto);
        }
        /// <summary>
        /// Converts this instance of <see cref="secuentialDto"/> to an instance of <see cref="secuential"/>.
        /// </summary>
        /// <param name="dto"><see cref="secuentialDto"/> to convert.</param>
        public static secuential ToEntity(this secuentialDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new secuential();

            entity.i_NodeId       = dto.i_NodeId;
            entity.i_TableId      = dto.i_TableId;
            entity.i_SecuentialId = dto.i_SecuentialId;

            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="secuential"/> converted from <see cref="secuentialDto"/>.</param>
 static partial void OnEntity(this secuentialDto dto, secuential entity);
Exemple #4
0
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="secuentialDto"/> converted from <see cref="secuential"/>.</param>
 static partial void OnDTO(this secuential entity, secuentialDto dto);