当我为我的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?
答案 0 :(得分:2)
模型的快照存储在_MigrationHistory
列中的表Model
中,该列是模型的Gzipped EDMX描述的二进制blob表示。
但是,如果您习惯于先编码,那么EDMX并不是我认为可读的东西。