SqlPropertyLink 類別

定義

封裝property_link的類別表示連接

[System.Runtime.InteropServices.ComVisible(false)]
public class SqlPropertyLink : Microsoft.SqlServer.Management.Sdk.Sfc.ConditionedSql
[<System.Runtime.InteropServices.ComVisible(false)>]
type SqlPropertyLink = class
    inherit ConditionedSql
Public Class SqlPropertyLink
Inherits ConditionedSql
繼承
SqlPropertyLink
屬性

建構函式

名稱 Description
SqlPropertyLink(XmlReadProperty)

透過讀取屬性標籤(屬性表)初始化

SqlPropertyLink(XmlReadPropertyLink)

透過讀取 XML 的 property_link 標籤初始化 Reader

SqlPropertyLink(XmlReadSettings)

透過讀取設定標籤(屬性 main_table 來初始化)

屬性

名稱 Description
AcceptsMultipleHits

可以重複加

(繼承來源 ConditionedSql)
Fields

取得觸發欄位清單

(繼承來源 ConditionedSql)
IsUsed

這個條件式 SQL 已經被使用過了嗎? (重要因為只能使用一次)

(繼承來源 ConditionedSql)
LinkFields

取得需要欄位值的清單

(繼承來源 ConditionedSql)
LinkMultiple

取得連結倍數

(繼承來源 ConditionedSql)
Table

設定 join table 名稱

Used

至少被加入過一次

(繼承來源 ConditionedSql)

方法

名稱 Description
Add(ConditionedSqlList, XmlReadProperty)

從屬性標籤加法

Add(ConditionedSqlList, XmlReadSettings)

從設定加進標籤

AddAll(ConditionedSqlList, XmlReadPropertyLink)

新增所有property_link標籤

AddHit(String, SqlObjectBase, StatementBuilder)

新增此欄位的命中,更新 StatementBuilder

AddLinkMultiple(XmlReadMultipleLink)

啟動連結多重

(繼承來源 ConditionedSql)
ClearHit()

將此 SQL 標記為未使用

(繼承來源 ConditionedSql)
GetFilter(SqlObjectBase)

取得連接的過濾器

GetTableNameWithAlias(SqlObjectBase)

以 TSQL 格式取得帶有別名的資料表名稱

IsDefault()

無論請求什麼欄位,這個 SQL 都必須被加入

(繼承來源 ConditionedSql)
IsHit(String)

如果該欄位導致 SQL 加入,則回傳 True。

(繼承來源 ConditionedSql)
MarkHit()

標記此 SQL 為已使用中

(繼承來源 ConditionedSql)
SetFields(StringCollection)

設定觸發欄位

(繼承來源 ConditionedSql)
TestHit(String)

測試該欄位是否能讓 TSQL 被加入(它不會查看是否已經使用過)

(繼承來源 ConditionedSql)

適用於