次の方法で共有


EntityTypeExtensions.GetDeclaredServiceProperties(IEntityType) メソッド

定義

指定 IEntityTypeした で宣言されているすべてのサービス プロパティを取得します。

このメソッドは、基本型で宣言されたプロパティを返しません。 同じプロパティを複数回処理しないように、すべてのエンティティ型を反復処理する場合に便利です。 を使用して GetServiceProperties() 、基本型で宣言されたプロパティも返します。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IServiceProperty> GetDeclaredServiceProperties (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetDeclaredServiceProperties : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IServiceProperty>
<Extension()>
Public Function GetDeclaredServiceProperties (entityType As IEntityType) As IEnumerable(Of IServiceProperty)

パラメーター

entityType
IEntityType

エンティティの型。

戻り値

宣言されたサービス プロパティ。

適用対象