[英]AutoIncrement and DataRelation in a c# typed dataset (from mysql)
我正在嘗試在兩個 mysql 表之間建立 DataRelation。 父表“organisations”有一個名為“organisationID”的主鍵(int,autoinc)。
子表(“authors”)將外鍵(organisations.organisationID)存儲為“organisation”(int)。
現在,當我嘗試設置 DataRelation 時,我總是會遇到異常:父列和子列沒有類型匹配的列。
我的猜測是 .NET 正在感知 autoinc int 和外鍵列的常規 int 之間的類型差異。
關於這個有什么想法嗎?
請務必在數據集設計器中設置外鍵以鍵入 INT
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.