语言

RuntimeTrigger 类

定义

表示表上的数据库触发器。

[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
特性
实现

构造函数

名称 说明
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]

获取具有给定名称的值批注,如果不存在,则 null 返回该值。

(继承自 RuntimeAnnotatableBase)
Item[String]

获取具有给定名称的值批注,如果不存在,则 null 返回该值。

(继承自 AnnotatableBase)
ModelName

获取模型中触发器的名称。

方法

名称 说明
AddAnnotation(String, Annotation)

向此对象添加批注。 如果具有指定名称的批注已存在,则引发。

(继承自 AnnotatableBase)
AddAnnotation(String, Object)

向此对象添加批注。 如果具有指定名称的批注已存在,则引发。

(继承自 RuntimeAnnotatableBase)
AddAnnotation(String, Object)

向此对象添加批注。 如果具有指定名称的批注已存在,则引发。

(继承自 AnnotatableBase)
AddAnnotations(IEnumerable<IAnnotation>)

向此对象添加批注,重写具有相同名称的任何现有批注。

(继承自 RuntimeAnnotatableBase)
AddAnnotations(IEnumerable<IAnnotation>)

向此对象添加批注。

(继承自 AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

向此对象添加批注,重写具有相同名称的任何现有批注。

(继承自 RuntimeAnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

向此对象添加批注。

(继承自 AnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

向此对象添加运行时批注。 如果具有指定名称的批注已存在,则引发。

(继承自 RuntimeAnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

向此对象添加运行时批注。 如果具有指定名称的批注已存在,则引发。

(继承自 AnnotatableBase)
AddRuntimeAnnotation(String, Object)

向此对象添加运行时批注。 如果具有指定名称的批注已存在,则引发。

(继承自 RuntimeAnnotatableBase)
AddRuntimeAnnotation(String, Object)

向此对象添加运行时批注。 如果具有指定名称的批注已存在,则引发。

(继承自 AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

向此对象添加运行时批注。

(继承自 RuntimeAnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

向此对象添加运行时批注。

(继承自 AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

向此对象添加运行时批注。

(继承自 RuntimeAnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

向此对象添加运行时批注。

(继承自 AnnotatableBase)
CreateAnnotation(String, Object)

创建新的批注。

(继承自 RuntimeAnnotatableBase)
CreateAnnotation(String, Object)

创建新的批注。

(继承自 AnnotatableBase)
CreateRuntimeAnnotation(String, Object)

创建新的运行时批注。

(继承自 RuntimeAnnotatableBase)
CreateRuntimeAnnotation(String, Object)

创建新的运行时批注。

(继承自 AnnotatableBase)
EnsureMutable()

如果模型是只读的,则引发。

(继承自 AnnotatableBase)
EnsureReadOnly()

如果模型不是只读的,则引发。

(继承自 AnnotatableBase)
FindAnnotation(String)

获取具有给定名称的批注,如果不存在,则 null 返回。

(继承自 RuntimeAnnotatableBase)
FindAnnotation(String)

获取具有给定名称的批注,如果不存在,则 null 返回。

(继承自 AnnotatableBase)
FindRuntimeAnnotation(String)

获取具有给定名称的运行时批注,如果不存在,则 null 返回。

(继承自 RuntimeAnnotatableBase)
FindRuntimeAnnotation(String)

获取具有给定名称的运行时批注,如果不存在,则 null 返回。

(继承自 AnnotatableBase)
GetAnnotation(String)

获取具有给定名称的批注,如果不存在,则引发该批注。

(继承自 RuntimeAnnotatableBase)
GetAnnotation(String)

获取具有给定名称的批注,如果不存在,则引发该批注。

(继承自 AnnotatableBase)
GetAnnotations()

获取当前对象上的所有批注。

(继承自 AnnotatableBase)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

获取具有给定名称的运行时批注的值,如果不存在,则添加它。

(继承自 RuntimeAnnotatableBase)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

获取具有给定名称的运行时批注的值,如果不存在,则添加它。

(继承自 AnnotatableBase)
GetRuntimeAnnotations()

获取当前对象上的所有运行时批注。

(继承自 RuntimeAnnotatableBase)
GetRuntimeAnnotations()

获取当前对象上的所有运行时批注。

(继承自 AnnotatableBase)
OnAnnotationSet(String, Annotation, Annotation)

设置或删除批注时调用。

(继承自 AnnotatableBase)
RemoveAnnotation(String)

从此对象中删除给定批注。

(继承自 RuntimeAnnotatableBase)
RemoveAnnotation(String)

从此对象中删除给定批注。

(继承自 AnnotatableBase)
RemoveRuntimeAnnotation(String)

从此对象中删除给定的运行时批注。

(继承自 RuntimeAnnotatableBase)
RemoveRuntimeAnnotation(String)

从此对象中删除给定的运行时批注。

(继承自 AnnotatableBase)
SetAnnotation(String, Annotation, Annotation)

设置存储在给定键下的批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

(继承自 AnnotatableBase)
SetAnnotation(String, Object)

设置存储在给定键下的批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

(继承自 RuntimeAnnotatableBase)
SetAnnotation(String, Object)

设置存储在给定键下的批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

(继承自 AnnotatableBase)
SetRuntimeAnnotation(String, Annotation, Annotation)

设置存储在给定密钥下的运行时批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

(继承自 RuntimeAnnotatableBase)
SetRuntimeAnnotation(String, Annotation, Annotation)

设置存储在给定密钥下的运行时批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

(继承自 AnnotatableBase)
SetRuntimeAnnotation(String, Object)

设置存储在给定密钥下的运行时批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

(继承自 RuntimeAnnotatableBase)
SetRuntimeAnnotation(String, Object)

设置存储在给定密钥下的运行时批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

(继承自 AnnotatableBase)
ToString()

表示表上的数据库触发器。

显式接口实现

名称 说明
IAnnotatable.AddRuntimeAnnotation(String, Object)

向此对象添加运行时批注。 如果具有指定名称的批注已存在,则引发。

(继承自 RuntimeAnnotatableBase)
IAnnotatable.AddRuntimeAnnotation(String, Object)

向此对象添加运行时批注。 如果具有指定名称的批注已存在,则引发。

(继承自 AnnotatableBase)
IAnnotatable.FindRuntimeAnnotation(String)

获取具有给定名称的运行时批注,如果不存在,则 null 返回。

(继承自 RuntimeAnnotatableBase)
IAnnotatable.FindRuntimeAnnotation(String)

获取具有给定名称的运行时批注,如果不存在,则 null 返回。

(继承自 AnnotatableBase)
IAnnotatable.GetRuntimeAnnotations()

获取当前对象上的所有运行时批注。

(继承自 RuntimeAnnotatableBase)
IAnnotatable.GetRuntimeAnnotations()

获取当前对象上的所有运行时批注。

(继承自 AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

从此对象中删除给定的运行时批注。

(继承自 RuntimeAnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

从此对象中删除给定的运行时批注。

(继承自 AnnotatableBase)
IAnnotatable.SetRuntimeAnnotation(String, Object)

设置存储在给定密钥下的运行时批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

(继承自 RuntimeAnnotatableBase)
IAnnotatable.SetRuntimeAnnotation(String, Object)

设置存储在给定密钥下的运行时批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

(继承自 AnnotatableBase)
IReadOnlyAnnotatable.FindAnnotation(String)

获取具有给定名称的批注,如果不存在,则 null 返回。

(继承自 RuntimeAnnotatableBase)
IReadOnlyAnnotatable.FindAnnotation(String)

获取具有给定名称的批注,如果不存在,则 null 返回。

(继承自 AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

获取当前对象上的所有批注。

(继承自 RuntimeAnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

获取当前对象上的所有批注。

(继承自 AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

获取具有给定名称的批注的值,如果不存在,则 null 返回该值。

(继承自 RuntimeAnnotatableBase)
IReadOnlyAnnotatable.Item[String]

获取具有给定名称的批注的值,如果不存在,则 null 返回该值。

(继承自 AnnotatableBase)
IReadOnlyTrigger.EntityType

获取定义此触发器的实体类型。

扩展方法

名称 说明
GetDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier)

获取触发器的数据库名称。

GetDatabaseName(IReadOnlyTrigger)

获取数据库中触发器的名称。

GetDefaultDatabaseName(IReadOnlyTrigger, StoreObjectIdentifier)

返回将用于此触发器的默认数据库名称。

GetDefaultDatabaseName(IReadOnlyTrigger)

返回将用于数据库中此触发器的默认名称。

GetTableName(IReadOnlyTrigger)

获取定义此触发器的表的名称。

GetTableSchema(IReadOnlyTrigger)

获取定义此触发器的表的架构。

GetTriggerOperation(IReadOnlyTrigger)

获取此触发器的 Cosmos DB 触发器操作。

GetTriggerType(IReadOnlyTrigger)

获取此触发器的 Cosmos DB 触发器类型。

适用于