Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Web;
- namespace j.roommate.Models
- {
- public enum RoomTypes
- {
- Home,
- Apartment,
- Townhouse,
- Condo,
- Other
- };
- public class Rooms
- {
- public int ID { get; set; }
- public int RoomID { get; set; }
- public RoomTypes RoomType { get; set; }
- public int NearByID { get; set; }
- [Required]
- [ForeignKey("NearByID")]
- public NearBy NearBy { get; set; }
- public int FeaturesID { get; set; }
- [Required]
- [ForeignKey("FeaturesID")]
- public Features Features { get; set; }
- public int bedroomsAvailable { get; set; }
- public int bathroomsAvailable { get; set; }
- public int WithTheRoomID {get; set;}
- [Required]
- [ForeignKey("WithTheRoomID")]
- public WithTheRoom WithTheRoom { get; set; }
- public int monthlyRent { get; set; }
- public int depositFee { get; set; }
- public int LeaseTermsID { get; set; }
- [Required]
- [ForeignKey("LeaseTermsID")]
- public LeaseTerms LeaseTerms { get; set; }
- public int LocationsID { get; set; }
- [Required]
- [ForeignKey("LocationsID")]
- public Locations Locations { get; set; }
- public DateTime moveInDate { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement