IEntityMaterializerSource.CreateMaterializeExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateMaterializeExpression(EntityMaterializerSourceParameters, Expression) |
Creates an Expression tree representing creating an entity instance. This method is typically used by database providers (and other extensions). It is generally not used in application code. |
CreateMaterializeExpression(IEntityType, String, Expression) |
Obsolete.
Creates an Expression tree representing creating an entity instance. This method is typically used by database providers (and other extensions). It is generally not used in application code. |
CreateMaterializeExpression(EntityMaterializerSourceParameters, Expression)
Creates an Expression tree representing creating an entity instance.
This method is typically used by database providers (and other extensions). It is generally not used in application code.
public virtual System.Linq.Expressions.Expression CreateMaterializeExpression (Microsoft.EntityFrameworkCore.Query.EntityMaterializerSourceParameters parameters, System.Linq.Expressions.Expression materializationExpression);
abstract member CreateMaterializeExpression : Microsoft.EntityFrameworkCore.Query.EntityMaterializerSourceParameters * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
override this.CreateMaterializeExpression : Microsoft.EntityFrameworkCore.Query.EntityMaterializerSourceParameters * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Public Overridable Function CreateMaterializeExpression (parameters As EntityMaterializerSourceParameters, materializationExpression As Expression) As Expression
Parameters
- parameters
- EntityMaterializerSourceParameters
Parameters for the entity being materialized.
- materializationExpression
- Expression
The materialization expression to build on.
Returns
An expression to read the value.
Applies to
CreateMaterializeExpression(IEntityType, String, Expression)
Caution
Use the overload that accepts an EntityMaterializerSourceParameters object.
Creates an Expression tree representing creating an entity instance.
This method is typically used by database providers (and other extensions). It is generally not used in application code.
public System.Linq.Expressions.Expression CreateMaterializeExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string entityInstanceName, System.Linq.Expressions.Expression materializationExpression);
[System.Obsolete("Use the overload that accepts an EntityMaterializerSourceParameters object.")]
public System.Linq.Expressions.Expression CreateMaterializeExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string entityInstanceName, System.Linq.Expressions.Expression materializationExpression);
abstract member CreateMaterializeExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * string * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
[<System.Obsolete("Use the overload that accepts an EntityMaterializerSourceParameters object.")>]
abstract member CreateMaterializeExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * string * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Public Function CreateMaterializeExpression (entityType As IEntityType, entityInstanceName As String, materializationExpression As Expression) As Expression
Parameters
- entityType
- IEntityType
The entity type being materialized.
- entityInstanceName
- String
The name of the instance being materialized.
- materializationExpression
- Expression
The materialization expression to build on.
Returns
An expression to read the value.
- Attributes
Applies to
Entity Framework