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

            var dto = new cie10Dto();

            dto.v_CIE10Id           = entity.v_CIE10Id;
            dto.v_CIE10Description1 = entity.v_CIE10Description1;
            dto.v_CIE10Description2 = entity.v_CIE10Description2;
            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);
        }
예제 #2
0
        /// <summary>
        /// Converts this instance of <see cref="cie10Dto"/> to an instance of <see cref="cie10"/>.
        /// </summary>
        /// <param name="dto"><see cref="cie10Dto"/> to convert.</param>
        public static cie10 ToEntity(this cie10Dto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new cie10();

            entity.v_CIE10Id           = dto.v_CIE10Id;
            entity.v_CIE10Description1 = dto.v_CIE10Description1;
            entity.v_CIE10Description2 = dto.v_CIE10Description2;
            entity.i_IsDeleted         = dto.i_IsDeleted;
            entity.i_InsertUserId      = dto.i_InsertUserId;
            entity.d_InsertDate        = dto.d_InsertDate;
            entity.i_UpdateUserId      = dto.i_UpdateUserId;
            entity.d_UpdateDate        = dto.d_UpdateDate;

            dto.OnEntity(entity);

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