共用方式為


SqlServerModelExtensions.SetServiceTierSql 方法

定義

多載

SetServiceTierSql(IMutableModel, String)

設定資料庫的服務層級。

SetServiceTierSql(IConventionModel, String, Boolean)

設定資料庫的服務層級。

SetServiceTierSql(IMutableModel, String)

來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs

設定資料庫的服務層級。

public static void SetServiceTierSql (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string value);
public static void SetServiceTierSql (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? value);
static member SetServiceTierSql : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetServiceTierSql (model As IMutableModel, value As String)

參數

model
IMutableModel

模型本身。

value
String

要設定的值。

適用於

SetServiceTierSql(IConventionModel, String, Boolean)

來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs
來源:
SqlServerModelExtensions.cs

設定資料庫的服務層級。

public static void SetServiceTierSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string SetServiceTierSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string? SetServiceTierSql (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? value, bool fromDataAnnotation = false);
static member SetServiceTierSql : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> unit
static member SetServiceTierSql : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Sub SetServiceTierSql (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetServiceTierSql (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false) As String

參數

model
IConventionModel

模型本身。

value
String

要設定的值。

fromDataAnnotation
Boolean

指出是否已使用資料批註指定組態。

傳回

已設定的值。

適用於