次の方法で共有


EntityShaperExpression.WithEntityType(IEntityType) メソッド

定義

このエンティティ シェーパーによって整形されるエンティティの種類を変更します。

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

パラメーター

entityType
IEntityType

使用する新しいエンティティ型。

戻り値

エンティティ型が変更されていない場合は、この式、またはエンティティ型が更新された式。

適用対象