MVC中的基本概念 [英] Fundamental concepts in MVC

查看:156
本文介绍了MVC中的基本概念的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我对几件事有疑问....

由于我对这个ASP.net MVC概念完全陌生(在MVC中还不到15天),并且由于对MVC中一些基本概念的了解不多,所以确实分散了我的工作...所以,

任何人都能清楚,简单地向我解释诸如此类的事情吗?

1.何时应使用"IEnumerable",列表" ....

2.使用诸如
这样的语句的主要用途是什么

Hi all,

I have the doubt regarding few things....

As i am completely new(less than 15 days age in MVC) to this ASP.net MVC concepts and due to lake of knowledge on some fundamental concepts in MVC, really distrubing my work... so,

Can any one clearly and simply explain me the things like,

1.When should we use "IEnumerable", "List"....

2.What is main use behind using the statement like

@model IEnumerable<Namespace.Models.ModelClasses>



3.
的主要用途是什么



3.What is main use of

public Virtual Classname Identifier{get; set;}



4.
的主要用途是什么



4.What is main use of

public IEnumerable<ClasseName> Identifier{get;set;}



5.
的主要用途是什么



5.What is main use of

public List<ClasseName> Identifier{get;set;}


我将非常感谢您...

在此先感谢...


I would be very thankfull to you...

Thanks in advance...

推荐答案

我认为主要用途是什么"方法不足以有效地解决问题.

此外,在显示模式中,没有特定于MVC的内容,而是针对一般OOP的内容.它们是如此基础或通常,以至于没有任何用途可以称为主要".此外,在一般的OOP和编程方面,您看起来还太落后了.也许您根本不准备使用MVC,需要首先学习一些编程知识.拿起手册,从头到尾阅读.在每一章做简单的练习,尝试理解所有的想法.

—SA
I don''t think "what is main use of" approach is productive enough to bother answering.

Besides, in the show patterns there is nothing specific to MVC, but more to general OOP; they are so fundamental or usual, that no use can be called "main". Besides, it looks you are too far behind in general OOP and programming. Maybe you are not ready to work with MVC at all, need to learn some programming first. Grab a manual, read it from the very beginning to the very end; do simple exercises on each chapter, try to understand all the ideas.

—SA


这篇关于MVC中的基本概念的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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