如何保存多个单选按钮列表值保存到数据库中 [英] how to save multiple radio button list values save into Database

查看:99
本文介绍了如何保存多个单选按钮列表值保存到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用实体框架迭代循环并在数据库中保存列表值。



在具有多个问题的列表中,通过QuestionId查找并根据所选答案进行保存价值。

how to iterate loop and save a list values in database using the entity framwork.

In list having multiple Questions recods find by QuestionId and save according the selected answer value.

[HttpPost]
        public ActionResult Index(List QuestionsModel model)
        {
          
            return View();
        }

推荐答案

你有什么尝试? [ ^ ]



我认为这是一个家庭作业;它不会在这里受理。

如果你希望我们做你的功课,那就行不通了。这背后有一个很好的理由:你不会学到任何东西,如果你希望别人为你做你的工作。



你可以尝试一下一开始就拥有,当你在任何地方停留时,来自这里的任何人都会尽力帮助你。但不要直接询问源代码



阅读代码项目快速解答常见问题解答 [ ^ ]首先:)



-KR
What have you tried?[^]

And as I assume, this a homework; it won't be entertained here.
If you expect us to do your homework, that's not going to work. There's a pretty good reason behind this: "You won't be learn anything, if you expect others do your work for you".

You can try something on your own at first and when you stuck anywhere, anyone from here would do his/her best to help you out. But don't directly ask for the source code.

Read the Code Project Quick Answers FAQ[^] first :)

-KR


这篇关于如何保存多个单选按钮列表值保存到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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