Class HintsHelper
Inheritance
System.Object
HintsHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.DB
Assembly: Terrasoft.Core.dll
Syntax
public static class HintsHelper
Methods
SpecifyNoLockHints(Select, Boolean)
Добавляет табличное указание NoLock в текущий запрос.
Declaration
public static void SpecifyNoLockHints(this Select source, bool useHint = true)
Parameters
Type | Name | Description |
---|---|---|
Select | source | Запрос на выборку. |
System.Boolean | useHint | Признак, определяющий, применять ли табличное указание при выполнении запроса.
Необязательный параметр, по умолчанию - |
SpecifyNoLockHints(UpdateSelect)
Adds hint NoLock for tables in source query.
Declaration
public static void SpecifyNoLockHints(this UpdateSelect source)
Parameters
Type | Name | Description |
---|---|---|
UpdateSelect | source | Source query. |
SpecifyNoLockHints(UpdateSelect, Boolean)
Adds hint NoLock for tables in source query.
Declaration
public static void SpecifyNoLockHints(this UpdateSelect source, bool useHint)
Parameters
Type | Name | Description |
---|---|---|
UpdateSelect | source | Source query. |
System.Boolean | useHint | Sign for apply table hint when execute.
Optional parameter. |
WithHints(Delete, BaseHint[])
Добавляет табличные указания в текущий запрос удаления данных.
Declaration
public static Delete WithHints(this Delete source, params BaseHint[] hints)
Parameters
Type | Name | Description |
---|---|---|
Delete | source | Запрос на удаление данных. |
BaseHint[] | hints | Перечисление табличных указаний. |
Returns
Type | Description |
---|---|
Delete | Текущий запрос удаления. |
WithHints(Join, BaseHint[])
Declaration
public static Join WithHints(this Join source, params BaseHint[] hints)
Parameters
Type | Name | Description |
---|---|---|
Join | source | |
BaseHint[] | hints |
Returns
Type | Description |
---|---|
Join |
WithHints(Select, BaseHint[])
Declaration
public static Select WithHints(this Select source, params BaseHint[] hints)
Parameters
Type | Name | Description |
---|---|---|
Select | source | |
BaseHint[] | hints |
Returns
Type | Description |
---|---|
Select |
WithHints(Update, BaseHint[])
Добавляет табличные указания в текущий запрос обновления данных.
Declaration
public static Update WithHints(this Update source, params BaseHint[] hints)
Parameters
Type | Name | Description |
---|---|---|
Update | source | Запрос обновления данных. |
BaseHint[] | hints | Перечисление табличных указаний. |
Returns
Type | Description |
---|---|
Update | Запрос обновления данных. |