mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
41 lines
807 B
C#
41 lines
807 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Packt.Shared;
|
|
|
|
public class Customer
|
|
{
|
|
[StringLength(5)]
|
|
public string CustomerId { get; set; } = null!;
|
|
|
|
[Required]
|
|
[StringLength(40)]
|
|
public string CompanyName { get; set; } = null!;
|
|
|
|
[StringLength(30)]
|
|
public string? ContactName { get; set; }
|
|
|
|
[StringLength(30)]
|
|
public string? ContactTitle { get; set; }
|
|
|
|
[StringLength(60)]
|
|
public string? Address { get; set; }
|
|
|
|
[StringLength(15)]
|
|
public string? City { get; set; }
|
|
|
|
[StringLength(15)]
|
|
public string? Region { get; set; }
|
|
|
|
[StringLength(10)]
|
|
public string? PostalCode { get; set; }
|
|
|
|
[StringLength(15)]
|
|
public string? Country { get; set; }
|
|
|
|
[StringLength(24)]
|
|
public string? Phone { get; set; }
|
|
|
|
[StringLength(24)]
|
|
public string? Fax { get; set; }
|
|
}
|