P
Poly
I have a problem.
I am trying to delete an object like this
try {
dataClasses1.myobjetcs.DeleteOnSubmit(obj);
dataClasses1.SubmitChanges();
}
catch {
MessageBox.Show("Ð½ÐµÐ»ÑŒÐ·Ñ ÑƒÐ´Ð°Ð»Ð¸Ñ‚ÑŒ");
}
And if delete fails, i can not work with my database any more, because
on any dataClasses1.SubmitChanges() called, i have an error.
I have tryed to refresh obj state like this
dataClasses1.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues,
obj);
but it don't helps.
best regards
Poly
I am trying to delete an object like this
try {
dataClasses1.myobjetcs.DeleteOnSubmit(obj);
dataClasses1.SubmitChanges();
}
catch {
MessageBox.Show("Ð½ÐµÐ»ÑŒÐ·Ñ ÑƒÐ´Ð°Ð»Ð¸Ñ‚ÑŒ");
}
And if delete fails, i can not work with my database any more, because
on any dataClasses1.SubmitChanges() called, i have an error.
I have tryed to refresh obj state like this
dataClasses1.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues,
obj);
but it don't helps.
best regards
Poly