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.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för