CosmosModelExtensions.GetDefaultContainer Method
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.
GetDefaultContainer(IModel) |
Returns the default container name. |
GetDefaultContainer(IReadOnlyModel) |
Returns the default container name. |
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
Returns the default container name.
C#
public static string GetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member GetDefaultContainer : Microsoft.EntityFrameworkCore.Metadata.IModel -> string
<Extension()>
Public Function GetDefaultContainer (model As IModel) As String
Parameters
- model
- IModel
The model.
Returns
The default container name.
Applies to
Entity Framework Core 5.0 and other versions
Product | Versions |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0 |
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
- Source:
- CosmosModelExtensions.cs
Returns the default container name.
C#
public static string? GetDefaultContainer (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel model);
static member GetDefaultContainer : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel -> string
<Extension()>
Public Function GetDefaultContainer (model As IReadOnlyModel) As String
Parameters
- model
- IReadOnlyModel
The model.
Returns
The default container name.
Applies to
Entity Framework Core 9.0 and other versions
Product | Versions |
---|---|
Entity Framework Core | 6.0, 7.0, 8.0, 9.0 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: