Click or drag to resize

ModelMapper Class

Model mapper
Inheritance Hierarchy
SystemObject
  SanteDB.Core.Model.MapModelMapper

Namespace:  SanteDB.Core.Model.Map
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntax
public sealed class ModelMapper

The ModelMapper type exposes the following members.

Constructors
  NameDescription
Public methodModelMapper
Creates a new mapper from source stream
Top
Methods
  NameDescription
Public methodCreateLambdaMemberAdjustmentExpression
Create a traversal expression for a lambda expression
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExtractDomainType
Extracts a domain type from a generic if needed
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMapDomainInstance(Type, Type, Object, Boolean, HashSetGuid)
Map domain instance
Public methodMapDomainInstanceTDomain, TModel(TDomain, Boolean, HashSetGuid)
Map model instance
Public methodMapDomainType
Gets the model type for the specified domain type
Public methodMapModelExpressionTFrom, TTo, TReturn
Convert the specified lambda expression from model into query
Public methodMapModelInstanceTModel, TDomain
Map model instance
Public methodMapModelMember
Map member
Public methodMapModelProperty(Type, PropertyInfo)
Maps a model property at a root level only
Public methodMapModelProperty(Type, Type, PropertyInfo)
Maps a model property at a root level only
Public methodMapModelType
Gets the domain type for the specified model type
Public methodMapTypeCast
Maps a cast to appropriate path
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventStatic memberMappedToModel
Fired anytime any model mapper maps finished
Public eventStatic memberMappingToModel
Fired anytime any model mapper maps to a model
Top
Extension Methods
  NameDescription
Public Extension MethodConvertTReturn
The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods.)
Public Extension MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also