MVC脚手架入门
我已经学习了许多 MVC 教程,现在我想创建现有数据库的原型 MVC 应用程序。
我已经安装了 MVCScaffolding 包,并且想将其与现有数据库一起使用。有没有人找到执行此操作的步骤?我已经看过但无法弄清楚如何让它发挥作用。
我想连接到 SQL Server 数据库并从中创建模型。然后搭建视图和控制器。
这里有什么我不明白的吗?这就是 MVC 脚手架的工作原理吗?
I have gone through many of the MVC tutorials and now I want to create a prototype mvc app of an existing database.
I have installed the MVCScaffolding package and I want to use it with an existing database. Has anyone found steps to go about doing this? I have looked but have been unable to figure out how to get it to work.
I want to connect to a sql server database and have the model created from it. Then scaffold out the views and controller.
Is there something I am not understanding here? Is this how MVC Scaffolding works?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一开始使用起来可能有点复杂,但随后您就会发现它的美妙之处。 检查此教程出来了,当我开始使用Asp.Net MVC 3时它给了我很多帮助,同时Asp.Net网站也给了我很多帮助。脚手架无非是一堆让你的生活更轻松的模板,仅此而已。您还可以检查 ScottGu 的博客 关于同一主题。
祝你好运!
this might be a little complex to work with at first, but then you will discover the beauty of it. Check this tutorial out, it helped me a lot when I started Asp.Net MVC 3, also Asp.Net site helped me a lot. Scaffolding is nothing more than a bunch of templates to make your life easier, nothing more. You could also check ScottGu's Blog about this same topic.
Good luck!