RelationalEntityTypeExtensions.GetOrCreateMappingFragment メソッド

定義

オーバーロード

GetOrCreateMappingFragment(IConventionEntityType, StoreObjectIdentifier, Boolean)

特定のテーブルに似たストア オブジェクトのエンティティ型マッピングを返します。

このメソッドは、通常、データベース プロバイダー (およびその他の拡張機能) によって使用されます。 通常、アプリケーション コードでは使用されません。

GetOrCreateMappingFragment(IMutableEntityType, StoreObjectIdentifier)

特定のテーブルに似たストア オブジェクトのエンティティ型マッピングを返します。

このメソッドは、通常、データベース プロバイダー (およびその他の拡張機能) によって使用されます。 通常、アプリケーション コードでは使用されません。

GetOrCreateMappingFragment(IConventionEntityType, StoreObjectIdentifier, Boolean)

特定のテーブルに似たストア オブジェクトのエンティティ型マッピングを返します。

このメソッドは、通常、データベース プロバイダー (およびその他の拡張機能) によって使用されます。 通常、アプリケーション コードでは使用されません。

public static Microsoft.EntityFrameworkCore.Metadata.IConventionEntityTypeMappingFragment GetOrCreateMappingFragment (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, bool fromDataAnnotation = false);
static member GetOrCreateMappingFragment : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * StoreObjectIdentifier * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityTypeMappingFragment
<Extension()>
Public Function GetOrCreateMappingFragment (entityType As IConventionEntityType, ByRef storeObject As StoreObjectIdentifier, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeMappingFragment

パラメーター

entityType
IConventionEntityType

エンティティの型。

storeObject
StoreObjectIdentifier

テーブルに似たストア オブジェクトの識別子。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

エンティティ型マッピング フラグメントを表す オブジェクト。

適用対象

GetOrCreateMappingFragment(IMutableEntityType, StoreObjectIdentifier)

特定のテーブルに似たストア オブジェクトのエンティティ型マッピングを返します。

このメソッドは、通常、データベース プロバイダー (およびその他の拡張機能) によって使用されます。 通常、アプリケーション コードでは使用されません。

public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityTypeMappingFragment GetOrCreateMappingFragment (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject);
static member GetOrCreateMappingFragment : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * StoreObjectIdentifier -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityTypeMappingFragment
<Extension()>
Public Function GetOrCreateMappingFragment (entityType As IMutableEntityType, ByRef storeObject As StoreObjectIdentifier) As IMutableEntityTypeMappingFragment

パラメーター

entityType
IMutableEntityType

エンティティの型。

storeObject
StoreObjectIdentifier

テーブルに似たストア オブジェクトの識別子。

戻り値

エンティティ型マッピング フラグメントを表す オブジェクト。

適用対象