Class ExpressionSlimEntityTypeSubstitutor
Expression tree visitor to substitute user-defined mapped types with an anonymous or record type.
Namespace: Nuqleon.DataModel.CompilerServices.Bonsai
Assembly: Nuqleon.DataModel.CompilerServices.dll
Syntax
public abstract class ExpressionSlimEntityTypeSubstitutor : Object
Constructors
ExpressionSlimEntityTypeSubstitutor(EntityTypeSlimSubstitutor)
Creates the visitor that applies the type substitutor provided to replace entity types.
Declaration
protected ExpressionSlimEntityTypeSubstitutor(EntityTypeSlimSubstitutor substitutor)
Parameters
Type | Name | Description |
---|---|---|
EntityTypeSlimSubstitutor | substitutor | The type substitutor to use. |
Properties
DataTypeConverter
Gets a converter to create a slim type from a data type.
Declaration
protected abstract DataTypeVisitor<TypeSlim, PropertyDataSlim> DataTypeConverter { get; }
Property Value
Type | Description |
---|---|
DataTypeVisitor<TypeSlim, PropertyDataSlim> |
Methods
Apply(ExpressionSlim)
Transforms an expression by replacing entity types using the type substitutor provided in the constructor.
Declaration
public virtual ExpressionSlim Apply(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | The expression to transform. |
Returns
Type | Description |
---|---|
ExpressionSlim | An expression with entity types replaced. |