如何将sql中的值更新为linq [英] How to update values in sql to linq
本文介绍了如何将sql中的值更新为linq的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用sql在Windows窗体中使用linq.按下时我有一个更新按钮,我将从数据库中获取值.现在我想更改表中的值并对其进行更新.plzzz如何帮助我.
解决方案
vishnu,
请参阅此链接,
http://www.richardbushnell.net/2008 /02/18/how-to-update-data-with-linq-to-sql/ [ C#中的简单LINQ to SQL [ http://stackoverflow.com/questions/909960/update-using-linq [ ^ ]一些示例
http://weblogs. asp.net/scottgu/archive/2007/07/11/linq-to-sql-part-4-updating-our-database.aspx [ http://msdn.microsoft.com/en-us/vstudio/bb688085.aspx [ ^ ]
http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b [ ^ ]
希望您能从这里获得解决方案.
谢谢,
Viprat
i am using sql to linq in windows form.i have a update button when i pressed i will get the values from database.now i want to change the values in a table and update it.how to do that plzzz help me.
解决方案
vishnu,
refer this link,
http://www.richardbushnell.net/2008/02/18/how-to-update-data-with-linq-to-sql/[^]
for more info:
Simple LINQ to SQL in C#[^]
regards
sarva
please check for more info
http://stackoverflow.com/questions/909960/update-using-linq[^] for some samples
http://weblogs.asp.net/scottgu/archive/2007/07/11/linq-to-sql-part-4-updating-our-database.aspx[^]
hi,
See the below link you will get all basic required queries from there.
http://msdn.microsoft.com/en-us/vstudio/bb688085.aspx[^]
http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b[^]
I hope you will get your solutions from here.
Thanks,
Viprat
这篇关于如何将sql中的值更新为linq的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文