Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. public class User
  2. {
  3. public User()
  4. {
  5. Equipments = new HashSet<Equipment>();
  6. Balances = new HashSet<Balance>();
  7. Subscriptions = new HashSet<Subscription>();
  8. }
  9.  
  10. public long Id { get; set; }
  11. public string LastName { get; set; }
  12.  
  13. public DateTime DOB { get; set; }
  14.  
  15. public long AddressId { get; set; }
  16. public Address Address { get; set; }
  17.  
  18. public ICollection<Equipment> Equipments { get; set; }
  19.  
  20. public ICollection<Balance> Balances { get; set; }
  21.  
  22. public ICollection<Subscription> Subscriptions { get; set; }
  23. }
  24.  
  25. public class Equipment
  26. {
  27. public long Id { get; set; }
  28. public string Model { get; set; }
  29. public int StateId { get; set; }
  30.  
  31. public long UserId { get; set; }
  32.  
  33. public User User { get; set; }
  34. }
  35.  
  36. public class Balance
  37. {
  38. public Balance()
  39. {
  40. Operations = new HashSet<BalanceOperation>();
  41. }
  42. public long Id { get; set; }
  43. public decimal Amount { get; set; }
  44. public int CurrencyId { get; set; }
  45.  
  46. public long UserId { get; set; }
  47.  
  48. public User User { get; set; }
  49.  
  50. public ICollection<BalanceOperation> Operations { get; set; }
  51. }
  52.  
  53. public class BalanceOperation
  54. {
  55. public long Id { get; set; }
  56.  
  57. public DateTime OperationDate { get; set; }
  58.  
  59. public long BalanceId { get; set; }
  60. public Balance Balance { get; set; }
  61. }
  62.  
  63. public class Address
  64. {
  65. public int Id { get; set; }
  66. public string City { get; set; }
  67. public int HouseNumber { get; set; }
  68. }
  69.  
  70. public class Subscription
  71. {
  72. public long Id { get; set; }
  73.  
  74. public int ServiceId { get; set; }
  75.  
  76. public bool IsActive { get; set; }
  77.  
  78. public long UserId { get; set; }
  79.  
  80. public User User { get; set; }
  81. }
  82.  
  83. int includes = (int)(IncludeEnum.Adress | IncludeEnum.Subscriptions);
  84. UserInfo userInfo = _service.GetUserInfo(id, includes);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement