摘要: 比如: public class LineItem { [Key] public int OrderId { get; set;} [Key] public int LineNum { get; set;} public string ItemId { get; set;} public int Quantity { get; set;} public decimal UnitPrice { get; set; } }编译时会出现如下错误:Unable to determine co... 阅读全文
posted @ 2013-03-18 21:34 James·wang 阅读(2492) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.ComponentModel.DataAnnotations; namespace CloudOne.Models{ public class Blog { public int BlogID { get; set; } public int CategoryID { get; set; } [MaxLength(70)] [Required... 阅读全文
posted @ 2013-03-18 17:25 James·wang 阅读(238) 评论(0) 推荐(0)