I'm using ADO.NET in my C# project. In my form I added a SourceBinding element from my toolbox in VS2010. I set the connection to the table of my dataset. It creates a DataAdapter automaticly for my.
I want to insert a record, so I call the Insert() method of the DataAdapter. But when I view my database data, it doesn't have any new records...
orderID = this.orderTableAdapter.Insert("", "",
(int)OrderStatus.IN_CONSTRUCTION, DateTime.Now);
Or do I need to insert it manually with the SqlCommand???
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…