DataTable

solution1.Check whether the primary key of the datatable is added

    add primary key

    right click the column,set primary key,then double check(right click the column,Edit Key,make sure the primary key is ticked)

原文地址:https://www.cnblogs.com/jinxinhelloworld/p/3324100.html