UpdateExpression 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個表示 SQL 樹中 UPDATE 操作的運算式。
此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。
[System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class UpdateExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression, Microsoft.EntityFrameworkCore.Query.IRelationalQuotableExpression
public sealed class UpdateExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class UpdateExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class UpdateExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression, Microsoft.EntityFrameworkCore.Query.IRelationalQuotableExpression
[<System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type UpdateExpression = class
inherit Expression
interface IRelationalQuotableExpression
interface IPrintableExpression
type UpdateExpression = class
inherit Expression
interface IPrintableExpression
[<System.Runtime.CompilerServices.Nullable(0)>]
type UpdateExpression = class
inherit Expression
interface IPrintableExpression
[<System.Runtime.CompilerServices.Nullable(0)>]
type UpdateExpression = class
inherit Expression
interface IRelationalQuotableExpression
interface IPrintableExpression
Public NotInheritable Class UpdateExpression
Inherits Expression
Implements IPrintableExpression, IRelationalQuotableExpression
Public NotInheritable Class UpdateExpression
Inherits Expression
Implements IPrintableExpression
- 繼承
-
UpdateExpression
- 屬性
- 實作
建構函式
| 名稱 | Description |
|---|---|
| UpdateExpression(TableExpression, SelectExpression, IReadOnlyList<ColumnValueSetter>, ISet<String>) |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
| UpdateExpression(TableExpression, SelectExpression, IReadOnlyList<ColumnValueSetter>) |
建立一個新的類別實例 UpdateExpression 。 |
屬性
| 名稱 | Description |
|---|---|
| ColumnValueSetters |
該清單 ColumnValueSetter 指定欄位及其對應的值需更新。 |
| NodeType |
一個表示 SQL 樹中 UPDATE 操作的運算式。 此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。 |
| SelectExpression |
select 運算式用來決定哪些列要更新,並從額外資料表取得資料。 |
| Table |
更新操作所應用的表格。 |
| Tags |
標籤列表適用於此 UpdateExpression。 |
| Type |
一個表示 SQL 樹中 UPDATE 操作的運算式。 此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。 |
方法
| 名稱 | Description |
|---|---|
| ApplyTags(ISet<String>) |
套用一組標籤。 |
| Equals(Object) |
一個表示 SQL 樹中 UPDATE 操作的運算式。 此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。 |
| GetHashCode() |
一個表示 SQL 樹中 UPDATE 操作的運算式。 此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。 |
| Print(ExpressionPrinter) |
利用 ExpressionPrinter建立給定表達式的可列印字串表示。 |
| Quote() |
引用這句話;也就是說,回傳一個表達式,當被評估時,會構造出與此表達式相同的表達式。 用於產生預編譯查詢的程式碼,重建此表達式。 |
| Update(SelectExpression, IReadOnlyList<ColumnValueSetter>) |
會建立一個新的表達式,類似這個,但使用提供的子節點。 如果所有子節點相同,則會回傳這個表達式。 |