語言

SqlServerMetadataExtensions.SqlServer 方法

定義

多載

名稱 Description
SqlServer(IEntityType)

取得 SQL Server 實體的特定元資料。

SqlServer(IForeignKey)

取得 SQL Server 專用的外鍵元資料。

SqlServer(IIndex)

取得 SQL Server 專屬的索引元資料。

SqlServer(IKey)

取得 SQL Server 專屬的 key 元資料。

SqlServer(IModel)

取得模型專用的 SQL Server 元資料。

SqlServer(IMutableEntityType)

取得 SQL Server 實體的特定元資料。

SqlServer(IMutableForeignKey)

取得 SQL Server 專用的外鍵元資料。

SqlServer(IMutableIndex)

取得 SQL Server 專屬的索引元資料。

SqlServer(IMutableKey)

取得 SQL Server 專屬的 key 元資料。

SqlServer(IMutableModel)

取得模型專用的 SQL Server 元資料。

SqlServer(IMutableProperty)

取得 SQL Server 專屬的屬性元資料。

SqlServer(IProperty)

取得 SQL Server 專屬的屬性元資料。

SqlServer(IEntityType)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得 SQL Server 實體的特定元資料。

public static Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerEntityTypeAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerEntityTypeAnnotations
<Extension()>
Public Function SqlServer (entityType As IEntityType) As IRelationalEntityTypeAnnotations
<Extension()>
Public Function SqlServer (entityType As IEntityType) As ISqlServerEntityTypeAnnotations

參數

entityType
IEntityType

要取得元資料的實體。

傳回

實體的 SQL Server 專屬元資料。

適用於

SqlServer(IForeignKey)

取得 SQL Server 專用的外鍵元資料。

public static Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations
<Extension()>
Public Function SqlServer (foreignKey As IForeignKey) As IRelationalForeignKeyAnnotations

參數

foreignKey
IForeignKey

外鍵是用來取得元資料的。

傳回

外鍵的 SQL Server 專用元資料。

適用於

SqlServer(IIndex)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得 SQL Server 專屬的索引元資料。

public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerIndexAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IIndex index);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IIndex -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerIndexAnnotations
<Extension()>
Public Function SqlServer (index As IIndex) As ISqlServerIndexAnnotations

參數

index
IIndex

索引用來取得元資料。

傳回

索引的 SQL Server 專屬元資料。

適用於

SqlServer(IKey)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得 SQL Server 專屬的 key 元資料。

public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerKeyAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IKey key);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IKey -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerKeyAnnotations
<Extension()>
Public Function SqlServer (key As IKey) As ISqlServerKeyAnnotations

參數

key
IKey

取得元資料的關鍵。

傳回

是 SQL Server 專用的金鑰元資料。

適用於

SqlServer(IModel)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得模型專用的 SQL Server 元資料。

public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerModelAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerModelAnnotations
<Extension()>
Public Function SqlServer (model As IModel) As ISqlServerModelAnnotations

參數

model
IModel

取得元資料的模型。

傳回

模型專用的 SQL Server 元資料。

適用於

SqlServer(IMutableEntityType)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得 SQL Server 實體的特定元資料。

public static Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerEntityTypeAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.SqlServerEntityTypeAnnotations
<Extension()>
Public Function SqlServer (entityType As IMutableEntityType) As RelationalEntityTypeAnnotations
<Extension()>
Public Function SqlServer (entityType As IMutableEntityType) As SqlServerEntityTypeAnnotations

參數

entityType
IMutableEntityType

要取得元資料的實體。

傳回

實體的 SQL Server 專屬元資料。

適用於

SqlServer(IMutableForeignKey)

取得 SQL Server 專用的外鍵元資料。

public static Microsoft.EntityFrameworkCore.Metadata.RelationalForeignKeyAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey -> Microsoft.EntityFrameworkCore.Metadata.RelationalForeignKeyAnnotations
<Extension()>
Public Function SqlServer (foreignKey As IMutableForeignKey) As RelationalForeignKeyAnnotations

參數

foreignKey
IMutableForeignKey

外鍵是用來取得元資料的。

傳回

外鍵的 SQL Server 專用元資料。

適用於

SqlServer(IMutableIndex)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得 SQL Server 專屬的索引元資料。

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerIndexAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex -> Microsoft.EntityFrameworkCore.Metadata.SqlServerIndexAnnotations
<Extension()>
Public Function SqlServer (index As IMutableIndex) As SqlServerIndexAnnotations

參數

index
IMutableIndex

索引用來取得元資料。

傳回

索引的 SQL Server 專屬元資料。

適用於

SqlServer(IMutableKey)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得 SQL Server 專屬的 key 元資料。

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerKeyAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IMutableKey key);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableKey -> Microsoft.EntityFrameworkCore.Metadata.SqlServerKeyAnnotations
<Extension()>
Public Function SqlServer (key As IMutableKey) As SqlServerKeyAnnotations

參數

key
IMutableKey

取得元資料的關鍵。

傳回

是 SQL Server 專用的金鑰元資料。

適用於

SqlServer(IMutableModel)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得模型專用的 SQL Server 元資料。

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerModelAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableModel -> Microsoft.EntityFrameworkCore.Metadata.SqlServerModelAnnotations
<Extension()>
Public Function SqlServer (model As IMutableModel) As SqlServerModelAnnotations

參數

model
IMutableModel

取得元資料的模型。

傳回

模型專用的 SQL Server 元資料。

適用於

SqlServer(IMutableProperty)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得 SQL Server 專屬的屬性元資料。

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerPropertyAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.SqlServerPropertyAnnotations
<Extension()>
Public Function SqlServer (property As IMutableProperty) As SqlServerPropertyAnnotations

參數

property
IMutableProperty

要取得元資料的屬性。

傳回

該屬性的 SQL Server 專用元資料。

適用於

SqlServer(IProperty)

來源:
SqlServerMetadataExtensions.cs
來源:
SqlServerMetadataExtensions.cs

取得 SQL Server 專屬的屬性元資料。

public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerPropertyAnnotations SqlServer(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerPropertyAnnotations
<Extension()>
Public Function SqlServer (property As IProperty) As ISqlServerPropertyAnnotations

參數

property
IProperty

要取得元資料的屬性。

傳回

該屬性的 SQL Server 專用元資料。

適用於