Sdílet prostřednictvím


EntityShaperExpression.WithEntityType(IEntityType) Metoda

Definice

Změní typ entity tvarovaný tímto obrazcem entity.

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

Parametry

entityType
IEntityType

Nový typ entity, který se má použít.

Návraty

Tento výraz, pokud se nezměnil typ entity nebo výraz s aktualizovaným typem entity.

Platí pro