RelationalEntityTypeExtensions.GetOrCreateMappingFragment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetOrCreateMappingFragment(IConventionEntityType, StoreObjectIdentifier, Boolean) |
Returns the entity type mapping for a particular table-like store object. This method is typically used by database providers (and other extensions). It is generally not used in application code. |
GetOrCreateMappingFragment(IMutableEntityType, StoreObjectIdentifier) |
Returns the entity type mapping for a particular table-like store object. This method is typically used by database providers (and other extensions). It is generally not used in application code. |
GetOrCreateMappingFragment(IConventionEntityType, StoreObjectIdentifier, Boolean)
Returns the entity type mapping for a particular table-like store object.
This method is typically used by database providers (and other extensions). It is generally not used in application code.
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
Parameters
- entityType
- IConventionEntityType
The entity type.
- storeObject
- StoreObjectIdentifier
The identifier of a table-like store object.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
An object that represents an entity type mapping fragment.
Applies to
GetOrCreateMappingFragment(IMutableEntityType, StoreObjectIdentifier)
Returns the entity type mapping for a particular table-like store object.
This method is typically used by database providers (and other extensions). It is generally not used in application code.
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
Parameters
- entityType
- IMutableEntityType
The entity type.
- storeObject
- StoreObjectIdentifier
The identifier of a table-like store object.
Returns
An object that represents an entity type mapping fragment.
Applies to
Entity Framework