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: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax
public sealed class ModelMapper

The ModelMapper type exposes the following members.

Constructors
 NameDescription
Public methodModelMapper Creates a new mapper from source stream
Top
Properties
 NameDescription
Public propertyStatic memberUseReflectionOnly When true, disables code generation for all model mapping activities. This value overrides the per-map setting.
Top
Methods
 NameDescription
Public methodAddClassMap Add a class map definition map to this model mapper context
Public methodCreateLambdaMemberAdjustmentExpression Create a traversal expression for a lambda expression
Public methodEqualsDetermines 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 methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetModelMapper Gets a model mapper that can handle the specified type
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodMapDomainInstance(Type, Type, Object) Map domain instance
Public methodMapDomainInstanceTDomain, TModel(TDomain) Map the specified domain instance
Public methodMapDomainType Gets the model type for the specified domain type
Public methodMapModelExpressionTFrom, TReturn(ExpressionFuncTFrom, TReturn, Type, Boolean) Automap the model expression using the configured mapper type
Public methodMapModelExpressionTFrom, TTo, TReturn(ExpressionFuncTFrom, TReturn, Boolean) Convert the specified lambda expression from model into query
Public methodMapModelInstanceTModel(TModel) Map model instance
Public methodMapModelInstanceTModel, TDomain(TModel) 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(Type) Gets the domain type for the specified model type
Public methodMapModelType(Type, Boolean) Map the model type controlling whether there is an error thrown
Public methodMapTypeCast Maps a cast to appropriate path
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
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 MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also