CustomerSend.cs 2.1 KB

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