Share via


QueryRootExpression.UpdateEntityType(IEntityType) Method

Definition

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

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

Parameters

entityType
IEntityType

The entity type to replace with.

Returns

New query root containing given entity type.

Applies to