0
我有4個表a
,b
,c
,d
和我有,b
到c
和c
到d
從a
到b
引用(通過外鍵)。 我正在使用網格視圖來加載此表。 如果我嘗試刪除的值具有基準那麼它給了我一個例外:刪除行與外鍵
The DELETE statement conflicted with the REFERENCE constraint 'FK__b__sc__0519C6AF'. The conflict occurred in database 'dbs', table 'dbo.b', column 'id'. The statement has been terminated.
我不想刪除的值,如果沒有與其重要夥伴。 GridViewSim_RowDeleting()
可以幫忙嗎?
我更新時遇到同樣的問題。我正在使用網格視圖提供的標準鏈接來更新和刪除。
任何幫助?