ISqlQuery 介面

定義

表示 SQL 查詢字串。

public interface ISqlQuery : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable, Microsoft.EntityFrameworkCore.Metadata.ITableBase
type ISqlQuery = interface
    interface ITableBase
    interface IAnnotatable
type ISqlQuery = interface
    interface ITableBase
    interface IAnnotatable
    interface IReadOnlyAnnotatable
Public Interface ISqlQuery
Implements IAnnotatable, ITableBase
實作

備註

如需詳細資訊和範例,請參閱 使用 EF Core 執行原始 SQL 命令

屬性

Columns

取得為此查詢定義的資料行。

ComplexTypeMappings

取得複雜型別對應。

(繼承來源 ITableBase)
EntityTypeMappings

取得實體類型對應。

IsShared

取得值,指出多個實體類型是否共用資料表中的資料列。

(繼承來源 ITableBase)
Item[String]

取得具有指定名稱的注釋值,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
Model

取得資料庫模型。

(繼承來源 ITableBase)
Name

取得資料庫中資料表的名稱。

(繼承來源 ITableBase)
Schema

取得資料庫中資料表的架構。

(繼承來源 ITableBase)
SchemaQualifiedName

取得資料庫中資料表的架構限定名稱。

(繼承來源 ITableBase)
Sql

取得 SQL 查詢字串。

方法

AddRuntimeAnnotation(String, Object)

將執行時間批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

(繼承來源 IAnnotatable)
AnnotationsToDebugString(Int32)

取得 物件上宣告之所有批註的偵錯字串。

(繼承來源 IReadOnlyAnnotatable)
FindAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則傳 null 回 。

(繼承來源 IReadOnlyAnnotatable)
FindColumn(IProperty)

取得對應至指定屬性的資料行。 如果沒有資料行對應至指定的屬性,則傳 null 回 。

FindColumn(String)

取得具有指定名稱的資料行。 如果未定義具有指定名稱的資料行,則傳 null 回 。

FindRuntimeAnnotation(String)

取得具有指定名稱的執行時間批註,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
FindRuntimeAnnotationValue(String)

取得具有指定名稱的執行時間批註值,如果不存在,則傳 null 回 。

(繼承來源 IAnnotatable)
GetAnnotation(String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前 物件上的所有批註。

(繼承來源 IReadOnlyAnnotatable)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

取得具有指定名稱的執行時間注釋值,如果不存在,請加以新增。

(繼承來源 IAnnotatable)
GetReferencingRowInternalForeignKeys(IEntityType)

從共用此資料表的其他實體類型取得參考指定實體類型的外鍵。

(繼承來源 ITableBase)
GetRowInternalForeignKeys(IEntityType)

取得指向共用此資料表之其他實體類型之指定實體類型的外鍵。

(繼承來源 ITableBase)
GetRuntimeAnnotations()

取得目前 物件上的所有執行時間批註。

(繼承來源 IAnnotatable)
IsOptional(IEntityType)

取得值,指出指定型別的實體是否可能不存在於資料列中。

(繼承來源 ITableBase)
IsOptional(ITypeBase)

取得值,指出指定型別的實體是否可能不存在於資料列中。

(繼承來源 ITableBase)
RemoveRuntimeAnnotation(String)

從這個 物件中移除指定的執行時間批註。

(繼承來源 IAnnotatable)
SetRuntimeAnnotation(String, Object)

設定儲存在指定索引鍵下的執行時間批註。 如果具有指定名稱的注釋已經存在,則覆寫現有的注釋。

(繼承來源 IAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:請勿依賴傳回字串的格式。 它是專為偵錯而設計,而且可能會在發行之間任意變更。

明確介面實作

ITableBase.ToDebugString(MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:請勿依賴傳回字串的格式。 它是專為偵錯而設計,而且可能會在發行之間任意變更。

擴充方法

AnnotationsToDebugString(IAnnotatable, Int32)

取得 物件上宣告之所有批註的偵錯字串。

GetAnnotation(IAnnotatable, String)

取得具有指定名稱的注釋,如果不存在,則會擲回。

ToDebugString(ISqlQuery, MetadataDebugStringOptions, Int32)

建立人類可讀取的指定中繼資料標記法。

警告:請勿依賴傳回字串的格式。 它是專為偵錯而設計,而且可能會在發行之間任意變更。

適用於