Share via


ConventionAnnotatable.OnAnnotationSet Method

Definition

Overloads

Name Description
OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

Called when an annotation was set or removed.

OnAnnotationSet(String, Annotation, Annotation)

Called when an annotation was set or removed.

OnAnnotationSet(String, IConventionAnnotation, IConventionAnnotation)

Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs

Called when an annotation was set or removed.

protected virtual Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? OnAnnotationSet(string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? oldAnnotation);
protected virtual Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation OnAnnotationSet(string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation oldAnnotation);
override this.OnAnnotationSet : string * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation -> Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation
Protected Overridable Function OnAnnotationSet (name As String, annotation As IConventionAnnotation, oldAnnotation As IConventionAnnotation) As IConventionAnnotation

Parameters

name
String

The key of the set annotation.

annotation
IConventionAnnotation

The annotation set.

oldAnnotation
IConventionAnnotation

The old annotation.

Returns

The annotation that was set.

Applies to

OnAnnotationSet(String, Annotation, Annotation)

Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs
Source:
ConventionAnnotatable.cs

Called when an annotation was set or removed.

protected override Microsoft.EntityFrameworkCore.Infrastructure.Annotation? OnAnnotationSet(string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation? annotation, Microsoft.EntityFrameworkCore.Infrastructure.Annotation? oldAnnotation);
protected override Microsoft.EntityFrameworkCore.Infrastructure.Annotation OnAnnotationSet(string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation, Microsoft.EntityFrameworkCore.Infrastructure.Annotation oldAnnotation);
override this.OnAnnotationSet : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Protected Overrides Function OnAnnotationSet (name As String, annotation As Annotation, oldAnnotation As Annotation) As Annotation

Parameters

name
String

The key of the set annotation.

annotation
Annotation

The annotation set.

oldAnnotation
Annotation

The old annotation.

Returns

The annotation that was set.

Applies to