Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. public partial class Driver
  2. {
  3. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
  4. public Driver()
  5. {
  6. this.trip_tab = new HashSet<Trip>();
  7.  
  8. }
  9.  
  10. public string ID { get; set; }
  11. public string DriverTypeID { get; set; }
  12. public string VehicleID { get; set; }
  13. public string Name { get; set; }
  14. public string ContactNo { get; set; }
  15. public string Comment { get; set; }
  16.  
  17. public virtual DriverType drivertype_tab { get; set; }
  18.  
  19. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
  20. public virtual ICollection<Trip> trip_tab { get; set; }
  21. }
  22.  
  23. public partial class DriverType
  24. {
  25. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
  26. public DriverType()
  27. {
  28. this.driver_tab = new HashSet<Driver>();
  29. }
  30.  
  31. public string ID { get; set; }
  32. public string Type { get; set; }
  33. public string Comment { get; set; }
  34.  
  35. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
  36. public virtual ICollection<Driver> driver_tab { get; set; }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement