使用mvc中的存储过程从数据库绑定表数据 [英] Bind table data from database using stored procedure in mvc
本文介绍了使用mvc中的存储过程从数据库绑定表数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须使用mvc中的存储过程从数据库绑定表数据
不使用实体框架
例子
id名称城市
在此先感谢
解决方案
请看一下类似的问题:没有EntityFramework的Mvc3中的Webgrid? [ ^ ]但是......我强烈建议您阅读: ASP.NET MVC概述 [ ^ ]了解为什么称它为 MVC [ ^ ]!
如需了解更多信息,请参阅:
ASP.NET MVC中的模型和验证 [ ^ ]
ASP.NET MVC 5 - 在Visual Studio 2013上使用Entity Framework 6进行CRUD操作 [ ^ ]
如何从MVC视图调用存储过程 [ ^ ]
EF和ASP.NET MVC中具有表值参数的存储过程 [ ^ ]
i have to Bind table data from database using stored procedure in mvc
without using entity framework
example
id name city
Thanks In advance
解决方案
Please, have a look at similar question: Webgrid in Mvc3 without EntityFramework? [^] BUT... i'd strongly recommend to read this: ASP.NET MVC Overview[^] to understand why it is called MVC[^]!
For further information, please see:
Models and Validation in ASP.NET MVC[^]
ASP.NET MVC 5 – CRUD operations with Entity Framework 6 on Visual Studio 2013[^]
How to call a stored procedure from MVC view[^]
Stored Procedure with Table-Valued Parameter in EF and ASP.NET MVC[^]
这篇关于使用mvc中的存储过程从数据库绑定表数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文