Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Web;
  7.  
  8. namespace j.roommate.Models
  9. {
  10.  
  11. public enum RoomTypes
  12. {
  13. Home,
  14. Apartment,
  15. Townhouse,
  16. Condo,
  17. Other
  18.  
  19. };
  20.  
  21. public class Rooms
  22. {
  23.  
  24. public int ID { get; set; }
  25. public int RoomID { get; set; }
  26.  
  27. public RoomTypes RoomType { get; set; }
  28. public int NearByID { get; set; }
  29. [Required]
  30. [ForeignKey("NearByID")]
  31. public NearBy NearBy { get; set; }
  32. public int FeaturesID { get; set; }
  33. [Required]
  34. [ForeignKey("FeaturesID")]
  35. public Features Features { get; set; }
  36.  
  37. public int bedroomsAvailable { get; set; }
  38. public int bathroomsAvailable { get; set; }
  39. public int WithTheRoomID {get; set;}
  40. [Required]
  41. [ForeignKey("WithTheRoomID")]
  42. public WithTheRoom WithTheRoom { get; set; }
  43. public int monthlyRent { get; set; }
  44. public int depositFee { get; set; }
  45. public int LeaseTermsID { get; set; }
  46. [Required]
  47. [ForeignKey("LeaseTermsID")]
  48. public LeaseTerms LeaseTerms { get; set; }
  49.  
  50. public int LocationsID { get; set; }
  51. [Required]
  52. [ForeignKey("LocationsID")]
  53. public Locations Locations { get; set; }
  54.  
  55.  
  56. public DateTime moveInDate { get; set; }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement