摘要:
首先我们来做一个比较,自定义Model加Annotation,如表1所示:图表1:Product Class 的定义Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 public class Product 2 { 3 [DisplayName("Product Name")] 4 [Required(ErrorMessage="Product Name is Required.")] 5 [Str 阅读全文
posted @ 2010-07-13 15:31
leeolevis
阅读(419)
评论(1)
推荐(0)
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->staticclassProgram{staticvoidMain(string[]args){string[]array={"aaa","bb","c"};foreach(variteminarray.AsQueryable().OrderBy("Length")){Console.WriteLine(item); 阅读全文
posted @ 2010-07-13 15:18
leeolevis
阅读(354)
评论(0)
推荐(0)

浙公网安备 33010602011771号