Skip to main content

add_owner_history

Function add_owner_history 

Source
pub fn add_owner_history(
    tx: &mut Transaction,
    draft: OwnerHistoryDraft<'_>,
) -> AuthorResult<EntityId>
Expand description

Stage an IfcOwnerHistory.

Two invariants are enforced here rather than left to a validator. A ChangeAction outside IfcChangeActionEnum would serialize as an unparseable enumeration token. And a LastModifiedDate earlier than CreationDate describes a record edited before it existed: it parses, validates, and quietly corrupts any audit trail built on it.