problem with update strong typed dataset turn to database in C# .net framework 3.5 -
I want to remove special characters in a table of the database I used the went table type strong it When I got all the data in the dataset from the database and it was modified, I called the data adapter to convert the database to the database, but it does not work.
Below is my code
DSTL Tele = New DST (); Dititeltebladaptrsktelefon_biketebladaptr adapter = new Dititeltebladaptrsktelefon_biketebladaptr (); Adapter.Connection = New SqlConnection (Configuration Manager. AppSettings ["SiteSqlServer"]. ToString ()); Adapter.fill (tel.telephone_bk); Foreign exchange (telephone Telifon_bike. Cry Distielktelefon_bikearo row) {row.telephoneNo = Nikalendaitspes (line. Telifonnau Ktostring ()); Row.AcceptChanges (); } Tail. accept (); Adapter.Update (tel.telephone_bk);
Please give me some ideas?
Thanks in advance.
I have found solution to this problem using TableAdapterManager.
Below is my code:
DSTtel Tele = New DST ();
Dititeltebladaptrsktelefon_biketebladaptr adapter = new Dititeltebladaptrsktelefon_biketebladaptr (); Adapter.Connection = New SqlConnection (Configuration Manager. AppSettings ["SiteSqlServer"]. ToString ()); Adapter.fill (tel.telephone_bk); Forex (Distielktelefon_bikero cell phone. Phone / BK. RO) (if (! Panktikistilefonnaul ()) {RowktelephoneNo = Nikalenuchcspes (Panktiktelefonnau Ktostring ());}} Disteltebladaptrsktebladetrmanejr Marji = new Dititeltebladaptrsktebladattrmanejr (); Mrg.telephone_bkTableAdapter = Adapter; Mrg.BackupDataSetBeforeUpdate = true; mrg.UpdateAll ((DsTel) tel.GetChanges ());
Comments
Post a Comment