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

            var dto = new systemparameterDto();

            dto.i_GroupId           = entity.i_GroupId;
            dto.i_ParameterId       = entity.i_ParameterId;
            dto.v_Value1            = entity.v_Value1;
            dto.v_Value2            = entity.v_Value2;
            dto.v_Field             = entity.v_Field;
            dto.i_ParentParameterId = entity.i_ParentParameterId;
            dto.i_Sort         = entity.i_Sort;
            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);
        }