HistoryRow 类

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

此类由 Code First 迁移用于读取和写入数据库中的迁移历史记录。

继承层次结构

System.Object
  System.Data.Entity.Migrations.History.HistoryRow

命名空间:  System.Data.Entity.Migrations.History
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Class HistoryRow
用法
Dim instance As HistoryRow
public class HistoryRow
public ref class HistoryRow
type HistoryRow =  class end
public class HistoryRow

HistoryRow 类型公开以下成员。

构造函数

  名称 描述
公共方法 HistoryRow 初始化 HistoryRow 类的新实例。

顶部

属性

  名称 描述
公共属性 ContextKey 获取或设置一个键,该键表示行应用的上下文。
公共属性 MigrationId 获取或设置此行表示的迁移的 ID。
公共属性 Model 获取或设置此迁移应用后模型的状态。
公共属性 ProductVersion 获取或设置创建此条目的实体框架的版本。

顶部

方法

  名称 描述
公共方法 Equals (继承自 Object。)
受保护的方法 Finalize (继承自 Object。)
公共方法 GetHashCode (继承自 Object。)
公共方法 GetType (继承自 Object。)
受保护的方法 MemberwiseClone (继承自 Object。)
公共方法 ToString (继承自 Object。)

顶部

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

System.Data.Entity.Migrations.History 命名空间