ConventionPropertyExtensions.SetTypeMapping Method

Definition

Sets the CoreTypeMapping for the given property

public static Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping SetTypeMapping (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping typeMapping, bool fromDataAnnotation = false);
static member SetTypeMapping : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping * bool -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
<Extension()>
Public Function SetTypeMapping (property As IConventionProperty, typeMapping As CoreTypeMapping, Optional fromDataAnnotation As Boolean = false) As CoreTypeMapping

Parameters

property
IConventionProperty

The property.

typeMapping
CoreTypeMapping

The CoreTypeMapping for this property.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

Applies to