CosmosModelExtensions.SetDefaultContainer Metodo

Definizione

Overload

SetDefaultContainer(IMutableModel, String)

Imposta il nome del contenitore predefinito.

SetDefaultContainer(IConventionModel, String, Boolean)

Imposta il nome del contenitore predefinito.

SetDefaultContainer(IMutableModel, String)

Imposta il nome del contenitore predefinito.

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)

Parametri

model
IMutableModel

Modello.

name
String

Nome da impostare.

Si applica a

SetDefaultContainer(IConventionModel, String, Boolean)

Imposta il nome del contenitore predefinito.

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

Parametri

model
IConventionModel

Modello.

name
String

Nome da impostare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

Il valore configurato.

Si applica a