语言

OperationExecutor.GetContextInfo 类

定义

表示获取有关类型 DbContext 的信息的操作。

public class OperationExecutor.GetContextInfo : Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase
type OperationExecutor.GetContextInfo = class
    inherit OperationExecutor.OperationBase
Public Class OperationExecutor.GetContextInfo
Inherits OperationExecutor.OperationBase
继承
OperationExecutor.GetContextInfo
继承
OperationExecutor.GetContextInfo

构造函数

名称 说明
OperationExecutor.GetContextInfo(OperationExecutor, IOperationResultHandler, IDictionary)

初始化 OperationExecutor.GetContextInfo 类的新实例。

OperationExecutor.GetContextInfo(OperationExecutor, Object, IDictionary)

初始化 OperationExecutor.GetContextInfo 类的新实例。

支持 args 的参数包括:

contextType-- DbContext 要使用的类型。

方法

名称 说明
Execute(Action)

执行将异常传递给 . IOperationResultHandler.

(继承自 OperationExecutor.OperationBase)
Execute<T>(Func<IEnumerable<T>>)

执行将结果或异常传递给 . IOperationResultHandler.

(继承自 OperationExecutor.OperationBase)
Execute<T>(Func<T>)

执行将结果或异常传递给 . IOperationResultHandler.

(继承自 OperationExecutor.OperationBase)

适用于