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

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

The ModelExpressionVisitor type exposes the following members.

Constructors
  NameDescription
Public methodModelExpressionVisitor
Model conversion visitor
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns 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 methodVisitBlock
Visits the children of the BlockExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitCatchBlock
Visits the children of the CatchBlock.
(Inherited from ExpressionVisitor.)
Protected methodVisitConditional
Visits the children of the ConditionalExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitConstant
Visits the ConstantExpression.
(Inherited from ExpressionVisitor.)
Public methodVisitConvert
Remove unnecessary convert statement
Protected methodVisitDebugInfo (Inherited from ExpressionVisitor.)
Protected methodVisitDefault
Visits the DefaultExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitDynamic
Visits the children of the DynamicExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitElementInit
Visits the children of the ElementInit.
(Inherited from ExpressionVisitor.)
Protected methodVisitExpressionList
Visit each expression in the args
Protected methodVisitExtension
Visits the children of the extension expression.
(Inherited from ExpressionVisitor.)
Protected methodVisitGoto
Visits the children of the GotoExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitIndex
Visits the children of the IndexExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitInvocation
Visits the children of the InvocationExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitLabel
Visits the children of the LabelExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitLabelTarget
Visits the LabelTarget.
(Inherited from ExpressionVisitor.)
Protected methodVisitLambdaT (Inherited from ExpressionVisitor.)
Protected methodVisitLambdaGeneric
Visit a lambda expression
Protected methodVisitListInit
Visits the children of the ListInitExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitLoop
Visits the children of the LoopExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitMember
Visits the children of the MemberExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitMemberAccess
Visit member access, converts member expression type and name
Protected methodVisitMemberAssignment
Visits the children of the MemberAssignment.
(Inherited from ExpressionVisitor.)
Protected methodVisitMemberBinding
Visits the children of the MemberBinding.
(Inherited from ExpressionVisitor.)
Protected methodVisitMemberInit
Visits the children of the MemberInitExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitMemberListBinding
Visits the children of the MemberListBinding.
(Inherited from ExpressionVisitor.)
Protected methodVisitMemberMemberBinding
Visits the children of the MemberMemberBinding.
(Inherited from ExpressionVisitor.)
Protected methodVisitMethodCall
Visit method call
(Overrides ExpressionVisitorVisitMethodCall(MethodCallExpression).)
Protected methodVisitNew
Visits the children of the NewExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitNewArray
Visits the children of the NewArrayExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitParameter
Visit parameter
(Overrides ExpressionVisitorVisitParameter(ParameterExpression).)
Protected methodVisitRuntimeVariables
Visits the children of the RuntimeVariablesExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitSwitch
Visits the children of the SwitchExpression.
(Inherited from ExpressionVisitor.)
Protected methodVisitSwitchCase
Visits the children of the SwitchCase.
(Inherited from ExpressionVisitor.)
Protected methodVisitTry
Visits 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 MethodGetInstanceOfTDomain
Gets an instance of TDomain from me
(Defined by ModelExtensions.)
Top
See Also