SqlServerModelExtensions.SetPerformanceLevelSql Method

Definition

Overloads

SetPerformanceLevelSql(IMutableModel, String)

Sets the performance level of the database.

SetPerformanceLevelSql(IConventionModel, String, Boolean)

Sets the performance level of the database.

SetPerformanceLevelSql(IMutableModel, String)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

Sets the performance level of the database.

C#
public static void SetPerformanceLevelSql (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string value);
C#
public static void SetPerformanceLevelSql (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? value);

Parameters

model
IMutableModel

The model.

value
String

The value to set.

Applies to

Entity Framework Core 9.0 and other versions
Product Versions
Entity Framework Core 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

SetPerformanceLevelSql(IConventionModel, String, Boolean)

Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs
Source:
SqlServerModelExtensions.cs

Sets the performance level of the database.

C#
public static void SetPerformanceLevelSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
C#
public static string SetPerformanceLevelSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
C#
public static string? SetPerformanceLevelSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? value, bool fromDataAnnotation = false);

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 and other versions
Product Versions
Entity Framework Core 3.1, 5.0, 6.0, 7.0, 8.0, 9.0