IConventionProperty.SetTypeMapping(CoreTypeMapping, Boolean) Method

Definition

Sets the CoreTypeMapping for the given property

public Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? SetTypeMapping (Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping typeMapping, bool fromDataAnnotation = false);
abstract member SetTypeMapping : Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping * bool -> Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping
Public Function SetTypeMapping (typeMapping As CoreTypeMapping, Optional fromDataAnnotation As Boolean = false) As CoreTypeMapping

Parameters

typeMapping
CoreTypeMapping

The CoreTypeMapping for this property.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

Applies to