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
- 继承
- 继承
- 特性
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| RuntimeTrigger(RuntimeEntityType, String) |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
属性
| 名称 | 说明 |
|---|---|
| DebugView |
这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。 |
| EntityType |
获取定义此触发器的实体类型。 |
| IsReadOnly |
指示当前对象是否为只读。 (继承自 AnnotatableBase) |
| Item[String] |
获取具有给定名称的值批注,如果不存在,则 |
| Item[String] |
获取具有给定名称的值批注,如果不存在,则 |
| ModelName |
获取模型中触发器的名称。 |
方法
显式接口实现
扩展方法
| 名称 | 说明 |
|---|---|
| GetDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier) |
获取触发器的数据库名称。 |
| GetDatabaseName(IReadOnlyTrigger) |
获取数据库中触发器的名称。 |
| GetDefaultDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier) |
返回将用于此触发器的默认数据库名称。 |
| GetDefaultDatabaseName(IReadOnlyTrigger) |
返回将用于数据库中此触发器的默认名称。 |
| GetTableName(IReadOnlyTrigger) |
获取定义此触发器的表的名称。 |
| GetTableSchema(IReadOnlyTrigger) |
获取定义此触发器的表的架构。 |
| GetTriggerOperation(IReadOnlyTrigger) |
获取此触发器的 Cosmos DB 触发器操作。 |
| GetTriggerType(IReadOnlyTrigger) |
获取此触发器的 Cosmos DB 触发器类型。 |