Business Model Objects
Objects in the SanteDB.Model package represent the core business model objects. These objects are responsible for representing the logical information model as a series of C# classes. These classes:
Contain minimal serialization metadata which allow SanteDB data to be serialized and parsed to/from JSON or XML in the synchronization format.
Contain basic behaviors (described here) which allow for utility such determining equality, deep-cloning, and copying.
Tools for delay loading chained properties (for example loading GenderConcept from the keyed concept)
Delay Loading Property Values
By default, the primary properties on any object loaded from the database on initial query. These are any simple values like UUIDs, strings, etc. and are loaded when the core object is loaded.
Take, for example a Patient object loaded from the database.
You can opt to fetch the GenderConcept using the IRepositoryService<Concept>
service, or, you can use the shortcut method .LoadProperty()
method.
The operations for delay loading are. These properties are loaded using the EntitySourceProvider.
Last updated