采用数据集插入()方法,将数据输入数据库。 和:
public void InsertData()
{
ATableAdapter a = new ATableAdapter();
a.Insert(//some parameters); //step 1: OK
BTableAdapter b = new BTableAdapter();
b.Insert(//some parameters); //step 2: throw exception
....
}
When running step 2, the program throws a exception and stop running the following functions, but in database, there is a dummy record that generated in step 1, how can i avoid that?