MutableAnnotatableExtensions.GetOrAddAnnotation 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.
Gets the existing annotation with a given key, or adds a new annotation if one does not exist.
public static Microsoft.EntityFrameworkCore.Infrastructure.Annotation GetOrAddAnnotation (this Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable annotatable, string annotationName, string value);
static member GetOrAddAnnotation : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable * string * string -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
<Extension()>
Public Function GetOrAddAnnotation (annotatable As IMutableAnnotatable, annotationName As String, value As String) As Annotation
- annotatable
- IMutableAnnotatable
The object to find or add the annotation to.
- annotationName
- String
The key of the annotation to be found or added.
- value
- String
The value to be stored in the annotation if a new one is created.
The found or added annotation.
Produkt | Versioner |
---|---|
Entity Framework Core | 1.0, 1.1, 2.0, 2.1, 2.2 |
Feedback om Entity Framework
Entity Framework är ett öppen källkod projekt. Välj en länk för att ge feedback: