Share via


RelationalElementTypeBuilderExtensions.CanSetStoreType Method

Definition

Returns a value indicating whether the given data type can be set for the elements.

public static bool CanSetStoreType (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionElementTypeBuilder elementTypeBuilder, string? typeName, bool fromDataAnnotation = false);
static member CanSetStoreType : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionElementTypeBuilder * string * bool -> bool
<Extension()>
Public Function CanSetStoreType (elementTypeBuilder As IConventionElementTypeBuilder, typeName As String, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

elementTypeBuilder
IConventionElementTypeBuilder

builder for the elements being configured.

typeName
String

The name of the data type of the elements.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given data type can be set for the property.

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to