Share via


EntityQueryRootExpression.UpdateEntityType(IEntityType) Method

Definition

Updates entity type associated with this query root with equivalent optimized version.

public virtual Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression UpdateEntityType (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member UpdateEntityType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression
override this.UpdateEntityType : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Query.EntityQueryRootExpression
Public Overridable Function UpdateEntityType (entityType As IEntityType) As EntityQueryRootExpression

Parameters

entityType
IEntityType

The entity type to replace with.

Returns

New query root containing given entity type.

Applies to