Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data.Entity;
  4. using System.Linq;
  5. using System.Web;
  6. using System.ComponentModel.DataAnnotations;
  7.  
  8. namespace HotelManagementSystem.Models
  9. {
  10. public class Room
  11. {
  12. public int RoomNo { get; set; }
  13. public string PackageiD { get; set; }
  14. public string ResiD { get; set; }
  15. public bool Tv { get; set; }
  16. public bool Wifi { get; set; }
  17. public bool Internet { get; set; }
  18. public bool Telephone { get; set; }
  19. public bool Ac { get; set; }
  20. public bool Bathroom { get; set; }
  21. public bool Fridge { get; set; }
  22. public bool Homethearter { get; set; }
  23. }
  24. public class RoomContext : DbContext
  25. {
  26. public DbSet<Room/*table name*/> HotelManagementSystem /*Data Base name */ { get; set; }
  27. }
  28. }
  29.  
  30. [Key]
  31. public int Id {get;set;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement