Freigeben über


RelationalEntityShaperExpression.WithEntityType(IEntityType) Methode

Definition

Ändert den Entitätstyp, der von diesem Entitätsformer geformt wird.

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

Parameter

entityType
IEntityType

Der neue zu verwendende Entitätstyp.

Gibt zurück

Dieser Ausdruck, wenn sich der Entitätstyp nicht geändert hat, oder ein Ausdruck mit aktualisiertem Entitätstyp.

Gilt für: