EF6代码首先添加迁移 - 当前代码的快照在哪里'存储在哪里?

时间:2014-08-01 06:38:12

标签: entity-framework entity-framework-6

当我为我的EF6代码第一个项目添加迁移时,我收到此消息

"The Designer Code for this migration file includes a snapshot 
of your current Code First model. This snapshot is used to 
calculate the changes to your model when you scaffold the 
next migration. If you make additional changes to your 
model that you want to include in this migration, 
then you can re-scaffold it by running 'Add-Migration AddAssignmentProperty' again."

有没有办法查看这个快照是什么,还是存储在秘密地方的一些不可读的blob?

1 个答案:

答案 0 :(得分:2)

模型的快照存储在_MigrationHistory列中的表Model中,该列是模型的Gzipped EDMX描述的二进制blob表示。

但是,如果您习惯于先编码,那么EDMX并不是我认为可读的东西。