RelationalEntityTypeExtensions.GetOrCreateMappingFragment 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
類似資料表的存放區物件的識別碼。
傳回
物件,表示實體類型對應片段。