RelationalEntityTypeAnnotations.SetDiscriminatorProperty 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
SetDiscriminatorProperty(IProperty) |
Attempts to set the DiscriminatorProperty using the semantics of the RelationalAnnotations in use. |
SetDiscriminatorProperty(IProperty, Type) |
Attempts to set the DiscriminatorProperty using the semantics of the RelationalAnnotations in use. |
SetDiscriminatorProperty(IProperty)
Attempts to set the DiscriminatorProperty using the semantics of the RelationalAnnotations in use.
protected virtual bool SetDiscriminatorProperty (Microsoft.EntityFrameworkCore.Metadata.IProperty value);
abstract member SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
override this.SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
Protected Overridable Function SetDiscriminatorProperty (value As IProperty) As Boolean
Parameters
- value
- IProperty
The value to set.
Returns
True
if the annotation was set; false
otherwise.
Applies to
SetDiscriminatorProperty(IProperty, Type)
Attempts to set the DiscriminatorProperty using the semantics of the RelationalAnnotations in use.
protected virtual bool SetDiscriminatorProperty (Microsoft.EntityFrameworkCore.Metadata.IProperty value, Type oldDiscriminatorType);
abstract member SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IProperty * Type -> bool
override this.SetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IProperty * Type -> bool
Protected Overridable Function SetDiscriminatorProperty (value As IProperty, oldDiscriminatorType As Type) As Boolean
Parameters
- value
- IProperty
The value to set.
- oldDiscriminatorType
- Type
The type that was previously being used for discriminator values.
Returns
True
if the annotation was set; false
otherwise.
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