CommitFailedException 构造函数

包括受保护的成员
包括继承的成员

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

初始化 CommitFailedException 类的新实例。

重载此成员。有关此成员的完整信息(包括语法、用法和示例),请单击重载列表中的相应名称。

重载列表 

  名称 描述
公共方法 CommitFailedException() 使用默认值初始化 CommitFailedException 的新实例。
公共方法 CommitFailedException(String) 使用错误消息初始化 CommitFailedException 的新实例。
受保护的方法 CommitFailedException(SerializationInfo, StreamingContext) 使用序列化数据初始化 CommitFailedException 类的新实例。
公共方法 CommitFailedException(String, Exception) 使用错误消息和内部异常初始化 CommitFailedException 的新实例。

顶部

请参阅

参考

CommitFailedException 类

System.Data.Entity.Infrastructure 命名空间