Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Data.Entity;
- using System.Linq;
- using System.Web;
- using System.ComponentModel.DataAnnotations;
- namespace HotelManagementSystem.Models
- {
- public class Room
- {
- public int RoomNo { get; set; }
- public string PackageiD { get; set; }
- public string ResiD { get; set; }
- public bool Tv { get; set; }
- public bool Wifi { get; set; }
- public bool Internet { get; set; }
- public bool Telephone { get; set; }
- public bool Ac { get; set; }
- public bool Bathroom { get; set; }
- public bool Fridge { get; set; }
- public bool Homethearter { get; set; }
- }
- public class RoomContext : DbContext
- {
- public DbSet<Room/*table name*/> HotelManagementSystem /*Data Base name */ { get; set; }
- }
- }
- [Key]
- public int Id {get;set;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement