SqlServerModelBuilderExtensions.CanSetDatabaseMaxSize(IConventionModelBuilder, String, Boolean) Method
Definition
Returns a value indicating whether the given value can be set as the maximum size of the database.
public static bool CanSetDatabaseMaxSize (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string maxSize, bool fromDataAnnotation = false);
static member CanSetDatabaseMaxSize : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * bool -> bool
<Extension()>
Public Function CanSetDatabaseMaxSize (modelBuilder As IConventionModelBuilder, maxSize As String, Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- modelBuilder
- IConventionModelBuilder
The model builder.
- maxSize
- String
The maximum size of the database.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the given value can be set as the maximum size of the database.