我很困惑,我試圖在我的信用卡資料和電話的數據類型int的最大和最小長度,但我不知道如何。信用卡數據類型詳細信息使用asp.net mvc 3
[Required(ErrorMessage = "Telephone is required")]
public int Telephone { get; set; }
[Required(ErrorMessage = "Card Type is required")]
[DisplayName("Card Type")]
[StringLength(20)]
public string CardType { get; set; }
[Required(ErrorMessage = "Card Holders Name is required")]
[DisplayName("Card Holders Name")]
[StringLength(160)]
public string CardHoldersName { get; set; }
public int CardNumber { get; set; }
public int CardExpMonth { get; set; }
public int CardExpYear { get; set; }
[ScaffoldColumn(false)]
public decimal Total;
有你研究PCI合規性的樂趣?大多數人不應該存儲CC數據。 – ceejayoz 2012-04-17 02:38:06