RuntimeTrigger 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表資料表上的資料庫觸發器。
[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeTrigger : Microsoft.EntityFrameworkCore.Infrastructure.RuntimeAnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.ITrigger
public class RuntimeTrigger : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.ITrigger
[System.Runtime.CompilerServices.Nullable(0)]
public class RuntimeTrigger : Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBase, Microsoft.EntityFrameworkCore.Metadata.ITrigger
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeTrigger = class
inherit RuntimeAnnotatableBase
interface ITrigger
interface IReadOnlyTrigger
interface IReadOnlyAnnotatable
interface IAnnotatable
type RuntimeTrigger = class
inherit AnnotatableBase
interface ITrigger
interface IReadOnlyTrigger
interface IReadOnlyAnnotatable
interface IAnnotatable
[<System.Runtime.CompilerServices.Nullable(0)>]
type RuntimeTrigger = class
inherit AnnotatableBase
interface ITrigger
interface IReadOnlyTrigger
interface IReadOnlyAnnotatable
interface IAnnotatable
Public Class RuntimeTrigger
Inherits RuntimeAnnotatableBase
Implements ITrigger
Public Class RuntimeTrigger
Inherits AnnotatableBase
Implements ITrigger
- 繼承
- 繼承
- 屬性
- 實作
建構函式
| 名稱 | Description |
|---|---|
| RuntimeTrigger(RuntimeEntityType, String) |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
屬性
| 名稱 | Description |
|---|---|
| DebugView |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
| EntityType |
取得定義此觸發條件的實體類型。 |
| IsReadOnly |
表示目前物件是否為唯讀。 (繼承來源 AnnotatableBase) |
| Item[String] |
取得帶有名稱的值註解,若不存在則回 |
| Item[String] |
取得帶有名稱的值註解,若不存在則回 |
| ModelName |
取得模型中觸發器的名稱。 |
方法
明確介面實作
擴充方法
| 名稱 | Description |
|---|---|
| GetDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier) |
取得觸發器的資料庫名稱。 |
| GetDatabaseName(IReadOnlyTrigger) |
取得資料庫中觸發器的名稱。 |
| GetDefaultDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier) |
回傳此觸發器所用的預設資料庫名稱。 |
| GetDefaultDatabaseName(IReadOnlyTrigger) |
回傳資料庫中此觸發器所用的預設名稱。 |
| GetTableName(IReadOnlyTrigger) |
取得定義此觸發點的表格名稱。 |
| GetTableSchema(IReadOnlyTrigger) |
取得定義此觸發點的表格結構。 |
| GetTriggerOperation(IReadOnlyTrigger) |
會取得 Cosmos DB 觸發操作。 |
| GetTriggerType(IReadOnlyTrigger) |
會獲得 Cosmos DB 觸發類型來觸發這個觸發。 |