javascript ASP.NET MVC 面试题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3900682/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ASP.NET MVC Interview Questions
提问by neebz
I have to interview a guy for an ASP.NET MVC position. Its a short term contract so I need someone who knows it pretty well. Also there is a lot of JQuery involved.
我必须面试一个 ASP.NET MVC 职位的人。这是一个短期合同,所以我需要一个非常了解它的人。还涉及很多 JQuery。
I was thinking of starting with general questions like:
我正在考虑从一般问题开始,例如:
- What is MVC in general?
- Why use ASP MVC Framework? Comparison with Webforms. .. etc.
- 什么是MVC?
- 为什么要使用 ASP MVC 框架?与 Webforms 的比较。.. 等等。
But what other questions would you recommend for MVC & JQuery?
但是,对于 MVC 和 JQuery,您还会推荐哪些其他问题?
Thanks
谢谢
回答by Muhammad Adeel Zahid
in my view
在我看来
- Extension methods(htmlhelpers etc.)
- routing
- model validation (extending to client side with jquery)
- Model binding (custom model binders)
- ORM concepts(L2S,EF etc)
- LINQ
- using sqlMembershiptProvider and sqlRoleProvider with mvc (if u want to use them)
- 扩展方法(htmlhelpers 等)
- 路由
- 模型验证(使用 jquery 扩展到客户端)
- 模型绑定(自定义模型绑定器)
- ORM 概念(L2S、EF 等)
- LINQ
- 在 mvc 中使用 sqlMembershiptProvider 和 sqlRoleProvider(如果你想使用它们)
回答by awrigley
The great thing about MVC is that it allows you to build patterns into your apps. For example, by writing base controller classes that encapsulate reusable methods, properties, Action filters, etc. Or by writing Helpers. Or Attributes. Or better still, combining them all into mini frameworks.
MVC 的伟大之处在于它允许您将模式构建到您的应用程序中。例如,通过编写封装可重用方法、属性、Action 过滤器等的基本控制器类。或者通过编写 Helpers。或属性。或者更好的是,将它们全部组合成迷你框架。
I would emply someone who thought that way. If they think like that, they understand MVC.
我会雇佣一个有这种想法的人。如果他们这样想,他们就了解 MVC。
Everything else can be learnt.
其他的都可以学。
回答by Ryan
Someone who has experience with MVC should understand how to use Action Filtersand Input Builder Templates. Also, if they're going to be developing in MVC, I think knowing about jQueryand client side UI tools is important since there are no built in web controls to work with. I'd also listen for them to mention MVCContribor FubuMVC. Since MVC promotes separation of concernsthe developer should understand what that is.
有 MVC 经验的人应该了解如何使用Action Filters和Input Builder Templates。此外,如果他们打算在 MVC 中进行开发,我认为了解jQuery和客户端 UI 工具很重要,因为没有内置的 Web 控件可以使用。我也会听他们提到MVCContrib或FubuMVC。由于 MVC 促进关注点分离,因此开发人员应该了解那是什么。

