RelationalEntityTypeExtensions.SetMappingStrategy 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
SetMappingStrategy(IConventionEntityType, String, Boolean) |
Sets the mapping strategy for the derived types. |
SetMappingStrategy(IMutableEntityType, String) |
Sets the mapping strategy for the derived types. |
SetMappingStrategy(IConventionEntityType, String, Boolean)
Sets the mapping strategy for the derived types.
public static string? SetMappingStrategy (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? strategy, bool fromDataAnnotation = false);
static member SetMappingStrategy : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Function SetMappingStrategy (entityType As IConventionEntityType, strategy As String, Optional fromDataAnnotation As Boolean = false) As String
Parameters
- entityType
- IConventionEntityType
The entity type.
- strategy
- String
The mapping strategy for the derived types.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
SetMappingStrategy(IMutableEntityType, String)
Sets the mapping strategy for the derived types.
public static void SetMappingStrategy (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? strategy);
static member SetMappingStrategy : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetMappingStrategy (entityType As IMutableEntityType, strategy As String)
Parameters
- entityType
- IMutableEntityType
The entity type.
- strategy
- String
The mapping strategy for the derived types.
Applies to
Entity Framework