How do I configure ASP.net MVC to Scaffold using ADO.net dataservice?

和自甴很熟 提交于 2019-12-24 11:18:13

问题


Setting up ASP.net MVC with Linq2SQL or Entity Framework's context to have scaffolding work out of the box is extremely easy. What tweaks would you make to make it work with ADO.net Data Services?


回答1:


On http://www.codeplex.com/aspnet there's a project for using ASP.NET Dynamic Data with ASP.NET MVC.




回答2:


I have customized the MVC Scaffolding templates to scaffold against a WCF Data Services Context (ADO.NET Data Services, oData, which they would stop changing the name!). You can find the templates here:

http://odatascaffolding.codeplex.com/



来源:https://stackoverflow.com/questions/431988/how-do-i-configure-asp-net-mvc-to-scaffold-using-ado-net-dataservice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!