Click or drag to resize

ModelExpressionVisitor Class

Model conversion visitor is used to convert a lambda expression based on the business model into a domain model lamda expression
Inheritance Hierarchy
SystemObject
  System.Linq.ExpressionsExpressionVisitor
    SanteDB.Core.Model.MapModelExpressionVisitor

Namespace: SanteDB.Core.Model.Map
Assembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax
public class ModelExpressionVisitor : ExpressionVisitor

The ModelExpressionVisitor type exposes the following members.

Constructors
 NameDescription
Public methodModelExpressionVisitor Model conversion visitor
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodVisit(Expression) Visit an expression
(Overrides ExpressionVisitorVisit(Expression))
Public methodVisit(ReadOnlyCollectionExpression)Dispatches the list of expressions to one of the more specialized visit methods in this class.
(Inherited from ExpressionVisitor)
Public methodVisitAndConvertT(ReadOnlyCollectionT, String)Visits all expressions in the collection, casting the results back to the original expression type.
(Inherited from ExpressionVisitor)
Public methodVisitAndConvertT(T, String)Visits an expression, casting the result back to the original expression type.
(Inherited from ExpressionVisitor)
Protected methodVisitBinary Visit a binary method
(Overrides ExpressionVisitorVisitBinary(BinaryExpression))
Protected methodVisitBlockVisits the children of the BlockExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitCatchBlockVisits the children of the CatchBlock.
(Inherited from ExpressionVisitor)
Protected methodVisitConditionalVisits the children of the ConditionalExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitConstantVisits the ConstantExpression.
(Inherited from ExpressionVisitor)
Public methodVisitConvert Remove unnecessary convert statement
Protected methodVisitDebugInfoVisits the DebugInfoExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitDefaultVisits the DefaultExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitDynamicVisits the children of the DynamicExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitElementInitVisits the children of the ElementInit.
(Inherited from ExpressionVisitor)
Protected methodVisitExpressionList Visit each expression in the args
Protected methodVisitExtensionVisits the children of the extension expression.
(Inherited from ExpressionVisitor)
Protected methodVisitGotoVisits the children of the GotoExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitIndexVisits the children of the IndexExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitInvocationVisits the children of the InvocationExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitLabelVisits the children of the LabelExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitLabelTargetVisits the LabelTarget.
(Inherited from ExpressionVisitor)
Protected methodVisitLambdaTVisits the children of the ExpressionTDelegate.
(Inherited from ExpressionVisitor)
Protected methodVisitLambdaGeneric Visit a lambda expression
Protected methodVisitListInitVisits the children of the ListInitExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitLoopVisits the children of the LoopExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberVisits the children of the MemberExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberAccess Visit member access, converts member expression type and name
Protected methodVisitMemberAssignmentVisits the children of the MemberAssignment.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberBindingVisits the children of the MemberBinding.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberInitVisits the children of the MemberInitExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberListBindingVisits the children of the MemberListBinding.
(Inherited from ExpressionVisitor)
Protected methodVisitMemberMemberBindingVisits the children of the MemberMemberBinding.
(Inherited from ExpressionVisitor)
Protected methodVisitMethodCall Visit method call
(Overrides ExpressionVisitorVisitMethodCall(MethodCallExpression))
Protected methodVisitNewVisits the children of the NewExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitNewArrayVisits the children of the NewArrayExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitParameter Visit parameter
(Overrides ExpressionVisitorVisitParameter(ParameterExpression))
Protected methodVisitRuntimeVariablesVisits the children of the RuntimeVariablesExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitSwitchVisits the children of the SwitchExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitSwitchCaseVisits the children of the SwitchCase.
(Inherited from ExpressionVisitor)
Protected methodVisitTryVisits the children of the TryExpression.
(Inherited from ExpressionVisitor)
Protected methodVisitTypeBinary Map type binary
(Overrides ExpressionVisitorVisitTypeBinary(TypeBinaryExpression))
Protected methodVisitUnary Visit unary expression
(Overrides ExpressionVisitorVisitUnary(UnaryExpression))
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