次の方法で共有


ConventionModelExtensions.GetEntityTypes メソッド

定義

オーバーロード

GetEntityTypes(IConventionModel, Type)
古い.

指定した型に一致するエンティティ型を取得します。

GetEntityTypes(IConventionModel, String)
古い.

指定した名前に一致するエンティティ型を取得します。

GetEntityTypes(IConventionModel, Type)

注意事項

Use IConventionEntityType.FindEntityTypes

指定した型に一致するエンティティ型を取得します。

[System.Diagnostics.DebuggerStepThrough]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IConventionEntityType.FindEntityTypes")]
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, Type type);
[<System.Diagnostics.DebuggerStepThrough>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType>
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IConventionEntityType.FindEntityTypes")>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Type -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType>
<Extension()>
Public Function GetEntityTypes (model As IConventionModel, type As Type) As IReadOnlyCollection(Of IConventionEntityType)
<Extension()>
Public Function GetEntityTypes (model As IConventionModel, type As Type) As IEnumerable(Of IConventionEntityType)

パラメーター

model
IConventionModel

エンティティ型を検索するモデル。

type
Type

検索するエンティティ型の型。

戻り値

見つかったエンティティの種類。

属性

適用対象

GetEntityTypes(IConventionModel, String)

注意事項

Use FindEntityTypes(Type) or FindEntityType(string)

指定した名前に一致するエンティティ型を取得します。

[System.Diagnostics.DebuggerStepThrough]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use FindEntityTypes(Type) or FindEntityType(string)")]
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType> GetEntityTypes (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name);
[<System.Diagnostics.DebuggerStepThrough>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType>
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use FindEntityTypes(Type) or FindEntityType(string)")>]
static member GetEntityTypes : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType>
<Extension()>
Public Function GetEntityTypes (model As IConventionModel, name As String) As IReadOnlyCollection(Of IConventionEntityType)

パラメーター

model
IConventionModel

エンティティ型を検索するモデル。

name
String

検索するエンティティ型の名前。

戻り値

見つかったエンティティの種類。

属性

適用対象