摘要:
嘗試使用 Entity Framework Code first 寫好代碼后 數(shù)據(jù)庫自動生成 很簡單方便 。 現(xiàn)在問題來了 需求變化 需要增加字段 甚至增加表 這時會報錯 增加字段保存出來的東西是 The model backing the 'BlogDB' context has changed since the database was created. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer insta 閱讀全文
posted @ 2011-05-25 21:45
wlf
閱讀(2239)
評論(8)
推薦(3)
浙公網(wǎng)安備 33010602011771號