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.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor