發表文章

目前顯示的是 2月, 2017的文章

C# 類別屬性複製

近來調整一個Linq to SQL的專案,但由於跟它不是非常熟的狀況下,發生了修改資料後資料庫並無任何反應的情況,實際使用SQL Profiler,發現並沒有執行Update的相關語法。 Google了一下關於Linq to SQL的修改的相關文章看到了這樣的說明【The table could not be updated properly because it had no primary key. (Actually it had the column but the constraint was not copied when I did a SELECT INTO my dev table). The DataContext class requires a primary key for updates .】,但這個並不是這次問題發生的原因。