/// <summary>
 /// Ensures that the <see cref="DomainObject"/> is included in the commit set of its <see cref="ClientTransaction.ActiveTransaction"/>.
 /// The object may not be in state <see cref="StateType.Deleted"/>, and if its state is <see cref="StateType.NotLoadedYet"/>,
 /// this method loads the object's data.
 /// </summary>
 /// <remarks>This method is only provided for compatibility, i.e. to make it easier to call the actual implementation.</remarks>
 /// <seealso cref="DomainObjectExtensions.RegisterForCommit"/>
 protected void RegisterForCommit()
 {
     DomainObjectExtensions.RegisterForCommit(this);
 }