Web API for the bulk printing desktop application.

Account.cs 1009B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System.Collections.Generic;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Runtime.Serialization;
  5. namespace MAX.Models
  6. {
  7. public class Account
  8. {
  9. public enum AccountStatus
  10. {
  11. Unknown,
  12. Enabled,
  13. Suspended,
  14. Closed
  15. }
  16. [DatabaseGenerated(DatabaseGeneratedOption.None)]
  17. public int Id { get; set; }
  18. [Required, MaxLength(50)]
  19. public string Name { get; set; }
  20. public AccountStatus Status { get; set; }
  21. [Required, MaxLength(50)]
  22. public string Reference { get; set; }
  23. [IgnoreDataMember]
  24. public int WarehouseId { get; set; }
  25. public Warehouse Warehouse { get; set; }
  26. [IgnoreDataMember]
  27. public ICollection<User> Users { get; set; }
  28. [IgnoreDataMember]
  29. public ICollection<Vendor> Vendors { get; set; }
  30. public decimal Balance { get; set; }
  31. }
  32. }