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

            var entity = new LogVisit();

            entity.LogID            = dto.LogID;
            entity.VisitID          = dto.VisitID;
            entity.VisitorID        = dto.VisitorID;
            entity.BadgeID          = dto.BadgeID;
            entity.AssetID          = dto.AssetID;
            entity.CreatedByUserID  = dto.CreatedByUserID;
            entity.CreatedDate      = dto.CreatedDate;
            entity.ModifiedByUserID = dto.ModifiedByUserID;
            entity.ModifiedDate     = dto.ModifiedDate;
            dto.OnEntity(entity);

            return(entity);
        }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="LogVisit"/> converted from <see cref="LogVisitDTO"/>.</param>
 static partial void OnEntity(this LogVisitDTO dto, LogVisit entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="LogVisitDTO"/> converted from <see cref="LogVisit"/>.</param>
 static partial void OnDTO(this LogVisit entity, LogVisitDTO dto);