SqlServerModelExtensions.SetDatabaseMaxSize 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.
SetDatabaseMaxSize(IMutableModel, String) |
Sets the maximum size of the database. |
SetDatabaseMaxSize(IConventionModel, String, Boolean) |
Sets the maximum size of the database. |
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
Sets the maximum size of the database.
public static void SetDatabaseMaxSize (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string value);
public static void SetDatabaseMaxSize (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? value);
static member SetDatabaseMaxSize : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetDatabaseMaxSize (model As IMutableModel, value As String)
Parameters
- model
- IMutableModel
The model.
- value
- String
The value to set.
Applies to
Entity Framework Core 9.0 och andra versioner
Produkt | Versioner |
---|---|
Entity Framework Core | 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
- Source:
- SqlServerModelExtensions.cs
Sets the maximum size of the database.
public static void SetDatabaseMaxSize (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string SetDatabaseMaxSize (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string? SetDatabaseMaxSize (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? value, bool fromDataAnnotation = false);
static member SetDatabaseMaxSize : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> unit
static member SetDatabaseMaxSize : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Sub SetDatabaseMaxSize (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetDatabaseMaxSize (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false) As String
Parameters
- model
- IConventionModel
The model.
- value
- String
The value to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.
Applies to
Entity Framework Core 9.0 och andra versioner
Produkt | Versioner |
---|---|
Entity Framework Core | 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Feedback om Entity Framework
Entity Framework är ett öppen källkod projekt. Välj en länk för att ge feedback: