RelationalElementTypeBuilderExtensions.CanSetStoreType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for