IConventionEntityTypeBuilder.CanSetDiscriminator 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.
Overloads
CanSetDiscriminator(MemberInfo, Boolean) |
Returns a value indicating whether the discriminator property can be configured. |
CanSetDiscriminator(String, Boolean) |
Returns a value indicating whether the discriminator property can be configured. |
CanSetDiscriminator(Type, Boolean) |
Returns a value indicating whether the discriminator property can be configured. |
CanSetDiscriminator(String, Type, Boolean) |
Returns a value indicating whether the discriminator property can be configured. |
CanSetDiscriminator(Type, String, Boolean) |
Returns a value indicating whether the discriminator column can be configured. |
CanSetDiscriminator(MemberInfo, Boolean)
Returns a value indicating whether the discriminator property can be configured.
public bool CanSetDiscriminator (System.Reflection.MemberInfo memberInfo, bool fromDataAnnotation = false);
abstract member CanSetDiscriminator : System.Reflection.MemberInfo * bool -> bool
Public Function CanSetDiscriminator (memberInfo As MemberInfo, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- memberInfo
- MemberInfo
The property mapped to the discriminator property.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the configuration can be applied.
Applies to
CanSetDiscriminator(String, Boolean)
Returns a value indicating whether the discriminator property can be configured.
public bool CanSetDiscriminator (string name, bool fromDataAnnotation = false);
abstract member CanSetDiscriminator : string * bool -> bool
Public Function CanSetDiscriminator (name As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- name
- String
The name of the discriminator property.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the configuration can be applied.
Applies to
CanSetDiscriminator(Type, Boolean)
Returns a value indicating whether the discriminator property can be configured.
public bool CanSetDiscriminator (Type type, bool fromDataAnnotation = false);
abstract member CanSetDiscriminator : Type * bool -> bool
Public Function CanSetDiscriminator (type As Type, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- type
- Type
The type of values stored in the discriminator property.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the configuration can be applied.
Applies to
CanSetDiscriminator(String, Type, Boolean)
Returns a value indicating whether the discriminator property can be configured.
public bool CanSetDiscriminator (string name, Type type, bool fromDataAnnotation = false);
abstract member CanSetDiscriminator : string * Type * bool -> bool
Public Function CanSetDiscriminator (name As String, type As Type, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- name
- String
The name of the discriminator property.
- type
- Type
The type of values stored in the discriminator property.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the configuration can be applied.
Applies to
CanSetDiscriminator(Type, String, Boolean)
Returns a value indicating whether the discriminator column can be configured.
public bool CanSetDiscriminator (Type type, string name, bool fromDataAnnotation = false);
abstract member CanSetDiscriminator : Type * string * bool -> bool
Public Function CanSetDiscriminator (type As Type, name As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- type
- Type
The type of values stored in the discriminator column.
- name
- String
The name of the discriminator column.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the configuration can be applied.
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: