开发MVC应用程序的最佳实践是什么? [英] What are the best practices to develop MVC application.

查看:109
本文介绍了开发MVC应用程序的最佳实践是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我想用C#提高我对MVC的知识,而且我还计划完成MVC 70-486考试的认证。

因此我决定创建POC应用程序,它将帮助我更新我的技能组合。

我有一些问题如下。



1.开发MVC应用程序的最佳做法是什么,我可以使用实体框架吗?与数据库或其他人沟通。



2.根据市场标准,我应该使用哪些其他技术与MVC一起使用。



请帮忙。



我的尝试:



代码项目文章和考试参考网站上的问题。

Hello All,

I want to improve my knowledge for MVC with C#,and also I am planning to complete my certification for MVC 70-486 exam.
Hence I decided to create POC application which will help me to update my skill set.
I have some question as bellow.

1.What is the best practice to develop an MVC application like, can I use entity framework to communicate with database or else.

2. Which are the other technologies which I should use along with MVC as per market standers.

Kindly help.

What I have tried:

code project articles and exam reference web site to attends the questions.

推荐答案

Hi Yrishi。



我建议你首先了解存储库和工作单元设计模式以及依赖注入。



您可以使用实体框架。专注于代码设置的第一种方式。



以下链接可以帮助您入门并快速完成。我用它们,他们给了我很多帮助。



实体框架代码优先 [ ^ ]



使用Entity Framework 5.0的CRUD操作MVC中的代码优先方法 [ ^ ]



我希望这会有所帮助。欢迎您提出更多问题。



问候
Hi Yrishi.

I would recommend you start with understanding the Repository and Unit of work design patterns as well as Dependency Injection.

You can use Entity Frameworks. Focus on the code first way of setting it up.

Here are the links that you can use to get you started and going pretty quick. I used them and they helped me a lot.

Entity Framework Code-First[^]

CRUD Operations Using Entity Framework 5.0 Code First Approach in MVC[^]

I hope this helps. You are welcome to ask more questions.

Regards


这篇关于开发MVC应用程序的最佳实践是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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