RelationalModelExtensions.SetDefaultSchema 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
| Name | Description |
|---|---|
| SetDefaultSchema(IMutableModel, String) |
Sets the default schema. |
| SetDefaultSchema(IConventionModel, String, Boolean) |
Sets the default schema. |
SetDefaultSchema(IMutableModel, String)
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
Sets the default schema.
public static void SetDefaultSchema(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? value);
public static void SetDefaultSchema(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string value);
static member SetDefaultSchema : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetDefaultSchema (model As IMutableModel, value As String)
Parameters
- model
- IMutableModel
The model to set the default schema for.
- value
- String
The value to set.
Applies to
SetDefaultSchema(IConventionModel, String, Boolean)
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
Sets the default schema.
public static string? SetDefaultSchema(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? value, bool fromDataAnnotation = false);
public static void SetDefaultSchema(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string SetDefaultSchema(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
static member SetDefaultSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
static member SetDefaultSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> unit
<Extension()>
Public Function SetDefaultSchema (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false) As String
<Extension()>
Public Sub SetDefaultSchema (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false)
Parameters
- model
- IConventionModel
The model to set the default schema for.
- value
- String
The value to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured schema.