码迷,mamicode.com
首页 > 其他好文 > 详细

Week4(9月30日):

时间:2014-09-29 00:56:36      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   os   ar   strong   数据   

Part I:提问 

===========================

1.什么是DRY?

2.解释下面的模型验证规则。

public class Movie {
    public int ID { get; set; }

    [Required]
    public string Title { get; set; }

    [DataType(DataType.Date)]
    public DateTime ReleaseDate { get; set; }

    [Required]
    public string Genre { get; set; }

    [Range(1, 100)]
    [DataType(DataType.Currency)]
    public decimal Price { get; set; }

    [StringLength(5)]
    public string Rating { get; set; }
}

3.视图的职责?

4.Model要()、Controller要()、View要够()。

5.视图中写C#代码,加什么符号?

6.在多行C#代码中,加文字,怎么处理?

7.指出下面代码存在的问题。

您好,@ViewBag.Name先生

 

Part II:Ch03 视图2

===========================

 要点:

    1.知识点3-4:给视图传递数据

 

Week4(9月30日):

标签:style   blog   http   color   io   os   ar   strong   数据   

原文地址:http://www.cnblogs.com/meetyy/p/3999114.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!