Browse by Tags
Sorry, but there are no more tags available to filter with.
-
【茶包射手日記】EF4 StoreGeneratedPattern設定無效
-
Entity Framework有個 Store Generated Pattern屬性 可因應新增資料庫欄位採自動跳號的需求。 今天測試時發現該設定不管用,新增至資料庫時持續傳回Primary Key重複錯誤,顯示設定未生效。爬文發現這是EF4的 Bug (原本預期已在VS2010 SP1修復,看來不然),目前知道的解決方法是在Solution Explorer的edml項目按右鍵View Code叫出edmx,直接修改SSDL XML,自己補上StoreGeneratedPattern Attribute...