Customers.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Data.Entity.Spatial;
  6. using Abp.Domain.Entities;
  7. namespace ShwasherSys.CustomerInfo
  8. {
  9. [Table("Customers")]
  10. public class Customer:Entity<string>
  11. {
  12. public const int CustomerNameMaxLength = 50;
  13. public const int LinkManMaxLength = 20;
  14. public const int AddressMaxLength = 150;
  15. public const int WebSiteMaxLength = 50;
  16. public const int TelephoneMaxLength = 50;
  17. public const int FaxMaxLength = 50;
  18. public const int ZipMaxLength = 6;
  19. public const int EmailMaxLength = 200;
  20. public const int UserIDLastModMaxLength = 20;
  21. public const int IsLockMaxLength = 1;
  22. //public string CustomerId { get; set; }
  23. [Required]
  24. [StringLength(CustomerNameMaxLength)]
  25. public string CustomerName { get; set; }
  26. [StringLength(LinkManMaxLength)]
  27. public string LinkMan { get; set; }
  28. [StringLength(AddressMaxLength)]
  29. public string Address { get; set; }
  30. [StringLength(WebSiteMaxLength)]
  31. public string WebSite { get; set; }
  32. [Column(TypeName = "smalldatetime")]
  33. public DateTime? TimeCreated { get; set; }
  34. [Column(TypeName = "smalldatetime")]
  35. public DateTime? TimeLastMod { get; set; }
  36. [StringLength(UserIDLastModMaxLength)]
  37. public string UserIDLastMod { get; set; }
  38. [Required]
  39. [StringLength(IsLockMaxLength)]
  40. public string IsLock { get; set; }
  41. [StringLength(TelephoneMaxLength)]
  42. public string Telephone { get; set; }
  43. [StringLength(FaxMaxLength)]
  44. public string Fax { get; set; }
  45. [StringLength(ZipMaxLength)]
  46. [Column("zip")]
  47. public string Zip { get; set; }
  48. [StringLength(EmailMaxLength)]
  49. public string Email { get; set; }
  50. public int? SaleType { get; set; }
  51. }
  52. }