我利用储存的胎盘从 d中获取数据(Sql 2008 r2明示)。 来源表中的2个领域可能包含国家不动产价值,因此,如果在数据库设计师的VS项目上增加数据来源,从而把不动产留给(Empty)的不动产和不动产(两个领域都在修缮)。
尽管采取了所有这些行动,但每次产生数据集时都会例外,试图以无效价值增长。 我检查了所有情况:请允许我指出,纽埃勒韦莱是真的,没有独特的钥匙。
我的法典有什么错误?
UPD "Exception message: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."
法典:
foreach (BusStationDataSet.selectCarrierListRow row in _tblSource.Rows)
{
//Next line of code throws exception
BusStationDataSet.selectCarrierPhonesDataTable _tblPhones = _taPhones.GetData(row.carrierId, Settings.Default.DataLanguage);
phones = string.Empty;
int i = 0;
foreach (BusStationDataSet.selectCarrierPhonesRow phoneRow in _tblPhones.Rows)
{
i++;
string end = i == _tblPhones.Rows.Count ? "" : ", ";
phones += (phoneRow.countryCode != string.Empty ? phoneRow.countryCode : "") + (phoneRow.regionCode != string.Empty ? " (" + phoneRow.regionCode + ") " : "") + phoneRow.number +
end;
}
phones = phones == string.Empty ? MultilangInterface.Instance.GetMessageString(MultilangInterface.Messages.NullValue) : phones;
_dsDestination.Tables["Carrier"].Rows.Add(new object[]{
null,
row.carrierId,
row.title,
row.carrierType,
row.country,
row.city,
row.country + ", " + row.region + ", " + row.city + ", " + row.street + ", " + row.building + (string.IsNullOrEmpty(row.addressLine)?"":", " + row.addressLine),
row.lastName +" "+ row.firstName +" "+ row.middleName,
phones
});
}