CosmosModelExtensions.SetDefaultContainer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetDefaultContainer(IMutableModel, String) |
Sets the default container name. |
SetDefaultContainer(IConventionModel, String, Boolean) |
Sets the default container name. |
SetDefaultContainer(IMutableModel, String)
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
Sets the default container name.
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)
Parameters
- model
- IMutableModel
The model.
- name
- String
The name to set.
Applies to
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
Sets the default container name.
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
Parameters
- model
- IConventionModel
The model.
- name
- String
The name to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework