/// <summary> /// Converts the gazette operation into a entity history entry. /// </summary> /// <returns>Coresponding history entry.</returns> public override HistoryEntryBase ConvertToHistory() { var historyArea = new HistoryAreaChange(); if ( this.oldareaSpecified ) { historyArea.oldarea = this.oldarea; historyArea.oldareaSpecified = true; } if ( this.newareaSpecified ) { historyArea.newarea = this.newarea; historyArea.newareaSpecified = true; } if ( this.typeSpecified ) { historyArea.type = this.type; historyArea.typeSpecified = true; } return historyArea; }
/// <summary> /// Converts the gazette operation into a entity history entry. /// </summary> /// <returns>Corresponding history entry.</returns> public override HistoryEntryBase ConvertToHistory() { var historyArea = new HistoryAreaChange(); if (this.oldareaSpecified) { historyArea.oldarea = this.oldarea; historyArea.oldareaSpecified = true; } if (this.newareaSpecified) { historyArea.newarea = this.newarea; historyArea.newareaSpecified = true; } if (this.typeSpecified) { historyArea.type = this.type; historyArea.typeSpecified = true; } return(historyArea); }