Asp.net MVC5主要详细示例,在master和detail两个级别上进行CRUD操作 [英] Asp.net MVC5 master detail example with CRUD operation on master and detail both level

查看:62
本文介绍了Asp.net MVC5主要详细示例,在master和detail两个级别上进行CRUD操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi,
 
I am new developer in MVC. I want to create Master Detail Entry With All operation Like Insert,Edit,Delete and View at Master (Parent) and Detail(Child) Level.
 
For Example : Sales Invoice
DataBase Table:
SalesInvMain  (Id,VouNo,VouDate,CustName)
SalesInvItem ( Id,SaleMainId,ItemName,Qty,Rate,Amount)
 
 Please give me Solution......Thanx in Advance and Waiting for your prompt reply.......





我的尝试:



我已经创建了一些只有一级CRUD操作的页面......但是我对Master和Detail上的CRUD操作都没有任何想法... ...



What I have tried:

I already create Some pages with have only one level CRUD operations... But I don't have any Idea about CRUD Operation on Master AND Detail both level......

推荐答案

由于您是MVC的新手,任何人都可以给你的最好的建议就是学习如何研究你的问题,而不是在网上问陌生人为您完成工作并提供解决方案。



Master Detail功能不是很开心,它已经完成了很多次,并且有很多关于如何完成的教程。



查看以下链接:



mvc 5主要详细示例 - Google搜索 [ ^ ]



MVC Master详细示例部分视图和模态对话框 [ ^ ]



c# - 如何插入Ma ASP.NET MVC 5中的ster-detail表 - Stack Overflow [ ^ ]



MVC 5中主细节数据表单的最佳策略ASP.NET论坛 [ ^ ]



使用ASP.NET MVC的Master-Details [ ^ ]



现在一旦开始在您的项目上,如果您遇到困难,请随时回过头来清楚地解释您的问题和相关代码示例,以便人们可以复制您的问题。如果你做了这两件事,我相信有人会很乐意帮助你解决问题,但希望有人能为你提供解决方案并不是最好的选择。
Since you are new to MVC, the best piece of advice anyone can give you is learn how to research you issues rather than asking strangers on the internet to do the work for you and provide the solution.

Master Detail functionality is not trail blazing, it has been done numerous times and has plenty of tutorials on how to accomplish.

Review the following links:

mvc 5 master detail example - Google Search[^]

MVC Master Detail Example with Partial View and Modal Dialog[^]

c# - How to Insert to Master-detail tables in ASP.NET MVC 5 - Stack Overflow[^]

Best Strategy for Master-Detail Data Form in MVC 5 | The ASP.NET Forums[^]

Master-Details using ASP.NET MVC[^]

Now once you get started on your project and should you get stuck somewhere, feel free to come back with a clear explanation of your issue and relevant code samples so people can replicate your issue. If you do those two things, I am sure someone will be happy to help you with your issue, but expecting someone to deliver you the solution is not the best route to go.


这篇关于Asp.net MVC5主要详细示例,在master和detail两个级别上进行CRUD操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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