如何在grid.net中将两个表插入到asp.net中的数据库c# [英] how to insert in two tables from gridview to database in asp.net c#

查看:64
本文介绍了如何在grid.net中将两个表插入到asp.net中的数据库c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是,我希望将gridview数据插入到2个表中。我该怎么办?

My problem is, i want my gridview data to be inserted into 2 tables. How can i do it?

推荐答案

在页面回发后,你可以检索gridiview并重新填充你想要更新的两个模型/实体,你可以打电话给你存储库层来更新这些模型。
On page post back you can retrieve the gridiview and repopulate the two models/entities which you would like to update and you can call your repository layer to update these models.


这篇关于如何在grid.net中将两个表插入到asp.net中的数据库c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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