IConventionPropertyBuilder.CanSetStructuralValueComparer Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Achtung
Use CanSetValueComparer. Only a single value comparer is allowed for a given property.
Gibt einen Wert zurück, der angibt, ob die angegebene ValueComparer Eigenschaft aus der aktuellen Konfigurationsquelle für diese Eigenschaft konfiguriert werden kann.
public bool CanSetStructuralValueComparer(Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer, bool fromDataAnnotation = false);
[System.Obsolete("Use CanSetValueComparer. Only a single value comparer is allowed for a given property.")]
public bool CanSetStructuralValueComparer(Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer comparer, bool fromDataAnnotation = false);
[System.Obsolete("Use CanSetValueComparer. Only a single value comparer is allowed for a given property.")]
public bool CanSetStructuralValueComparer(Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer? comparer, bool fromDataAnnotation = false);
abstract member CanSetStructuralValueComparer : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer * bool -> bool
[<System.Obsolete("Use CanSetValueComparer. Only a single value comparer is allowed for a given property.")>]
abstract member CanSetStructuralValueComparer : Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer * bool -> bool
Public Function CanSetStructuralValueComparer (comparer As ValueComparer, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameter
- comparer
- ValueComparer
Der Vergleicher oder null zum Entfernen eines zuvor festgelegten Vergleichs.
- fromDataAnnotation
- Boolean
Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.
Gibt zurück
true wenn die angegebene ValueComparer Eigenschaft für diese Eigenschaft konfiguriert werden kann.
- Attribute