本文介绍了System.data.constraintexception:无法启用约束。一行或多行包含违反非null,唯一或外键约束的值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Line 2960: this.Adapter.SelectCommand = this.CommandCollection[5];
Line 2961: CDS.ADDJOB_SELECTDataTable dataTable = new CDS.ADDJOB_SELECTDataTable();
Line 2962: this.Adapter.Fill(dataTable);
Line 2963: return dataTable;
Line 2964: }
我尝试过:
What I have tried:
public partial class AddEducation : System.Web.UI.Page
{
SDS.SELECT_ADDEDUDataTable EDT = new SDS.SELECT_ADDEDUDataTable();
SDSTableAdapters.SELECT_ADDEDUTableAdapter EAdapter = new SDSTableAdapters.SELECT_ADDEDUTableAdapter();
推荐答案
这篇关于System.data.constraintexception:无法启用约束。一行或多行包含违反非null,唯一或外键约束的值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!