IConventionModel.SetChangeTrackingStrategy Method
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.
Sets the default change tracking strategy to use for entities in the model. This strategy indicates how the context detects changes to properties for an instance of an entity type.
public Microsoft.EntityFrameworkCore.ChangeTrackingStrategy? SetChangeTrackingStrategy (Microsoft.EntityFrameworkCore.ChangeTrackingStrategy? changeTrackingStrategy, bool fromDataAnnotation = false);
abstract member SetChangeTrackingStrategy : Nullable<Microsoft.EntityFrameworkCore.ChangeTrackingStrategy> * bool -> Nullable<Microsoft.EntityFrameworkCore.ChangeTrackingStrategy>
Public Function SetChangeTrackingStrategy (changeTrackingStrategy As Nullable(Of ChangeTrackingStrategy), Optional fromDataAnnotation As Boolean = false) As Nullable(Of ChangeTrackingStrategy)
- changeTrackingStrategy
- Nullable<ChangeTrackingStrategy>
The strategy to use.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
The configured value.
Produkt | Versioner |
---|---|
Entity Framework Core | 6.0, 7.0, 8.0, 9.0 |
Feedback om Entity Framework
Entity Framework är ett öppen källkod projekt. Välj en länk för att ge feedback: