Class EntityChange
Inheritance
Inherited Members
Namespace: Xbim.Common.Delta
Assembly: Xbim.Common.dll
Syntax
public class EntityChange
Properties
| Improve this Doc View SourceChangedProperties
Changed properties within a scope of transaction. Current values are evaluated when you enumerate this property so make sure to ask for it before you do any further modifications. This property will return empty enumeration if ChangeType is anything else than 'Modified'.
Declaration
public IEnumerable<PropertyChange> ChangedProperties { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<PropertyChange> |
ChangeType
Prioritized log. Priorities are as follows: Deleted > New > Modified. This assumes that if entity is deleted at the end it is not very important what happened in the meantime. If it is new it is not that important if it was modified because full entity is interesting. Modifications are interesting in all other cases. Special case is entity which was created and deleted within a scope of one transaction but this should already be filtered out from the transaction log.
Declaration
public ChangeType ChangeType { get; }
Property Value
| Type | Description |
|---|---|
| ChangeType |
CurrentEntity
Current string representation of the entity. This is computed dynamically when you ask for this so make sure not to ask for it after further modifications.
Declaration
public string CurrentEntity { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Entity
Entity which changes are described in this log entry
Declaration
public IPersistEntity Entity { get; }
Property Value
| Type | Description |
|---|---|
| IPersistEntity |
OriginalEntity
String representation of the entity before the first change was made to it. If this is a new entity this is empty string.
Declaration
public string OriginalEntity { get; }
Property Value
| Type | Description |
|---|---|
| System.String |