RelationalEntityTypeExtensions.SetMappingStrategy Method

Definition

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