第九话 Asp.Net MVC3.0【MVC项目实战の五】
第九话 Asp.Net MVC3.0【MVC项目实战の五】<div class="postbody"><div id="cnblogs_post_body">随着我们购物车的不断完善,我们简单的完成到最后的订单模块。我们需要一个扩展的模型,在我们的域模型类库里,添加一个类(ShippingDetail)类,它的具体代码如下:
<div class="cnblogs_code">using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ComponentModel.DataAnnotations;namespace SportsStore.Domain.Entities{ public class ShippingDetails { ="Please enter a name")] public string Name { get; set; } ="Please enter the first Address")] public string Address1 { get; set; } public string Address2 { get; set; } public string Address3 { get; set; } ="Please enter a city name")] public string City { get; set; } ="Please enter a state name")] public string State { get; set; } public string Zip { get; set; } ="Please enter a country name")] public string Country { get; set; } public bool GiftWrap { get; set; } }}
页:
[1]