Compartir a través de


CosmosModelExtensions.SetDefaultContainer Método

Definición

Sobrecargas

SetDefaultContainer(IMutableModel, String)

Establece el nombre del contenedor predeterminado.

SetDefaultContainer(IConventionModel, String, Boolean)

Establece el nombre del contenedor predeterminado.

SetDefaultContainer(IMutableModel, String)

Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs

Establece el nombre del contenedor predeterminado.

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)

Parámetros

model
IMutableModel

Modelo.

name
String

Nombre que se establecerá.

Se aplica a

SetDefaultContainer(IConventionModel, String, Boolean)

Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs
Source:
CosmosModelExtensions.cs

Establece el nombre del contenedor predeterminado.

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

Parámetros

model
IConventionModel

Modelo.

name
String

Nombre que se establecerá.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

El valor configurado.

Se aplica a