RelationalEntityTypeExtensions.SetContainerColumnTypeMapping Method

Definition

Overloads

SetContainerColumnTypeMapping(IMutableEntityType, RelationalTypeMapping)
Obsolete.

Sets the type mapping for the container column to which the entity type is mapped.

SetContainerColumnTypeMapping(IConventionEntityType, RelationalTypeMapping, Boolean)
Obsolete.

Sets the type mapping for the container column to which the entity type is mapped.

SetContainerColumnTypeMapping(IMutableEntityType, RelationalTypeMapping)

Caution

Container column mappings are now obtained from IColumnBase.StoreTypeMapping

Sets the type mapping for the container column to which the entity type is mapped.

public static void SetContainerColumnTypeMapping (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping);
[System.Obsolete("Container column mappings are now obtained from IColumnBase.StoreTypeMapping")]
public static void SetContainerColumnTypeMapping (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping);
static member SetContainerColumnTypeMapping : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> unit
[<System.Obsolete("Container column mappings are now obtained from IColumnBase.StoreTypeMapping")>]
static member SetContainerColumnTypeMapping : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> unit
<Extension()>
Public Sub SetContainerColumnTypeMapping (entityType As IMutableEntityType, typeMapping As RelationalTypeMapping)

Parameters

entityType
IMutableEntityType

The entity type to set the container column type mapping for.

typeMapping
RelationalTypeMapping

The type mapping to set.

Attributes

Applies to

SetContainerColumnTypeMapping(IConventionEntityType, RelationalTypeMapping, Boolean)

Caution

Container column mappings are now obtained from IColumnBase.StoreTypeMapping

Sets the type mapping for the container column to which the entity type is mapped.

public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? SetContainerColumnTypeMapping (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping, bool fromDataAnnotation = false);
[System.Obsolete("Container column mappings are now obtained from IColumnBase.StoreTypeMapping")]
public static Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? SetContainerColumnTypeMapping (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping, bool fromDataAnnotation = false);
static member SetContainerColumnTypeMapping : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
[<System.Obsolete("Container column mappings are now obtained from IColumnBase.StoreTypeMapping")>]
static member SetContainerColumnTypeMapping : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping
<Extension()>
Public Function SetContainerColumnTypeMapping (entityType As IConventionEntityType, typeMapping As RelationalTypeMapping, Optional fromDataAnnotation As Boolean = false) As RelationalTypeMapping

Parameters

entityType
IConventionEntityType

The entity type to set the container column type mapping for.

typeMapping
RelationalTypeMapping

The type mapping to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Attributes

Applies to