Share via


RelationalEntityShaperExpression.WithEntityType(IEntityType) Method

Definition

Changes the entity type being shaped by this entity shaper.

public override Microsoft.EntityFrameworkCore.Query.EntityShaperExpression WithEntityType (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
override this.WithEntityType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Query.EntityShaperExpression
Public Overrides Function WithEntityType (entityType As IEntityType) As EntityShaperExpression

Parameters

entityType
IEntityType

The new entity type to use.

Returns

This expression if entity type not changed, or an expression with updated entity type.

Applies to