EntityQueryRootExpression.UpdateEntityType(IEntityType) 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework