Freigeben über


RelationalTriggerBuilderExtensions.HasDatabaseName Methode

Definition

Legt den Datenbanknamen des Triggers fest.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder? HasDatabaseName (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder triggerBuilder, string? name, bool fromDataAnnotation = false);
static member HasDatabaseName : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder
<Extension()>
Public Function HasDatabaseName (triggerBuilder As IConventionTriggerBuilder, name As String, Optional fromDataAnnotation As Boolean = false) As IConventionTriggerBuilder

Parameter

triggerBuilder
IConventionTriggerBuilder

Der Generator für den zu konfigurierenden Trigger.

name
String

Der Datenbankname des Triggers.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Derselbe Generator instance, wenn die Konfiguration angewendet wurde, null andernfalls.

Gilt für: