一次更新多个DataTable行使用MVC 4和Entity框架 [英] update multiple DataTable row at once Using MVC 4 and Entity framework

查看:63
本文介绍了一次更新多个DataTable行使用MVC 4和Entity框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据表(GRID),所有行和列都是带有文本框控件的可编辑字段。我有一个保存按钮,如果我点击所有已编辑的字段应该在单击时更新。

i had a Data Table (GRID) all rows and columns are editable field with the textbox control. i had a save button if i clicks all edited field should get updated on the single click.

推荐答案

不确定这里的挑战是什么,它可以非常简单地处理办法。希望您通过使用更新的模型获得控制器中的所有更新字段。



打开一个事务范围,并在您想要的任意数量的表中进行更新,并在最后提交事务。如果您需要进一步澄清,请告诉我。
Not sure what is the challenge here it can be handled in very simple way. Hope you getting all updated field in controller by using updated Model.

Open a transaction scope and do update in as many table you want and at the end commit the transaction. Let me know if you need further clarification on this.


这篇关于一次更新多个DataTable行使用MVC 4和Entity框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆