Udostępnij za pośrednictwem


OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>.HasAnnotation Metoda

Definicja

Dodaje lub aktualizuje adnotację w procedurze składowanej. Jeśli adnotacja z kluczem określonym w annotation już istnieje, jego wartość zostanie zaktualizowana.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity> HasAnnotation (string annotation, object? value);
override this.HasAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)>
Public Overridable Function HasAnnotation (annotation As String, value As Object) As OwnedNavigationStoredProcedureBuilder(Of TOwnerEntity, TDependentEntity)

Parametry

annotation
String

Klucz adnotacji do dodania lub zaktualizowania.

value
Object

Wartość, która ma być przechowywana w adnotacji.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć wiele wywołań konfiguracji.

Dotyczy