Home > Net >  Update the datatable
Update the datatable

Time:11-21

Defines a datatable dt_ drugs, all the data query, give dt_ all drugs, now want to update the field inside, wrote a has a problem, don't know how to change, trouble under the guidance of the
 
Var query=(from dt dt_ all drugs in
Where dt. Field Size (" code ")==123
Select dt). FirstOrDefault ();
Query. "city health code"=321;
Query. SubmitChanges ();

CodePudding user response:

https://juejin.cn/post/6844904111154921486
  •  Tags:  
  • C#
  • Related