Freigeben über


CosmosModelExtensions.SetDefaultContainer Methode

Definition

Überlädt

SetDefaultContainer(IMutableModel, String)

Legt den Standardcontainernamen fest.

SetDefaultContainer(IConventionModel, String, Boolean)

Legt den Standardcontainernamen fest.

SetDefaultContainer(IMutableModel, String)

Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs

Legt den Standardcontainernamen fest.

public static void SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);
public static void SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? name);
static member SetDefaultContainer : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetDefaultContainer (model As IMutableModel, name As String)

Parameter

model
IMutableModel

Das Modell.

name
String

Der Name, der festgelegt werden soll.

Gilt für:

SetDefaultContainer(IConventionModel, String, Boolean)

Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs
Quelle:
CosmosModelExtensions.cs

Legt den Standardcontainernamen fest.

public static void SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
public static string SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, bool fromDataAnnotation = false);
public static string? SetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? name, bool fromDataAnnotation = false);
static member SetDefaultContainer : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> unit
static member SetDefaultContainer : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Sub SetDefaultContainer (model As IConventionModel, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetDefaultContainer (model As IConventionModel, name As String, Optional fromDataAnnotation As Boolean = false) As String

Parameter

model
IConventionModel

Das Modell.

name
String

Der Name, der festgelegt werden soll.

fromDataAnnotation
Boolean

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

Gibt zurück

Der konfigurierte Wert.

Gilt für: