RelationalModelExtensions.GetDefaultSchema Method

Definition

Overloads

GetDefaultSchema(IModel)

Returns the default schema to use for the model, or null if none has been set.

GetDefaultSchema(IReadOnlyModel)

Returns the default schema to use for the model, or null if none has been set.

GetDefaultSchema(IModel)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Returns the default schema to use for the model, or null if none has been set.

C#
public static string GetDefaultSchema (this Microsoft.EntityFrameworkCore.Metadata.IModel model);

Parameters

model
IModel

The model to get the default schema for.

Returns

The default schema.

Applies to

Entity Framework Core 5.0 och andra versioner
Produkt Versioner
Entity Framework Core 3.0, 3.1, 5.0

GetDefaultSchema(IReadOnlyModel)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

Returns the default schema to use for the model, or null if none has been set.

C#
public static string? GetDefaultSchema (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyModel model);

Parameters

model
IReadOnlyModel

The model to get the default schema for.

Returns

The default schema.

Applies to

Entity Framework Core 9.0 och andra versioner
Produkt Versioner
Entity Framework Core 6.0, 7.0, 8.0, 9.0