Each insert semantic must implement the IInsertSemantic interface. This interface consists of two methods:
-
CanObjectBeInserted – Called before the object is "inserted". This method gives the insert semantic the ability to detect an error, add that error to the message container and return False. Alternatively, this method can perform application-specific logic and return True.
-
InsertObject – Called after the object is inserted. Allows for post-object creation logic to be executed.