Insert methode of TableAdapter not working?
Posted
by
Stijn Leenknegt
on Stack Overflow
See other posts from Stack Overflow
or by Stijn Leenknegt
Published on 2010-12-28T23:47:59Z
Indexed on
2010/12/28
23:54 UTC
Read the original article
Hit count: 163
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???
© Stack Overflow or respective owner