LoganYoung87

Untitled

May 23rd, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.88 KB | None | 0 0
  1. namespace jerit.Data
  2. {
  3.     public class Entity
  4.     {
  5.         public int Id { get; set; }
  6.     }
  7.  
  8.     public class Complex: Entity
  9.     {
  10.         public string Name { get; set; }
  11.         public Address Address { get; set; }
  12.         public Liaison Liaison { get; set; }
  13.         public Policy Policy { get; set; }
  14.     }
  15.  
  16.     public class Address
  17.     {
  18.         public string[] Lines { get; set; }
  19.         public string Street { get; set; }
  20.         public string Suburb { get; set; }
  21.         public string City { get; set; }
  22.         public string ZipCode { get; set; }
  23.     }
  24.  
  25.     public class Policy : Entity
  26.     {
  27.         public Insurer Insurer { get; set; }
  28.         public string Number { get; set; }
  29.     }
  30.  
  31.     public class Liaison : Entity
  32.     {
  33.         public string Name{ get; set; }
  34.         public string Phone { get; set; }
  35.         public string EmailAddress { get; set; }
  36.     }
  37.  
  38.     public class Insurer : Entity
  39.     {
  40.         public string Name { get; set; }
  41.         public Liaison Liaison { get; set; }
  42.     }
  43. }
Add Comment
Please, Sign In to add comment