问题
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