Advertisement
Guest User

Dish Entity Class

a guest
Aug 5th, 2013
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1.     public class Dish
  2.     {
  3.         // pk
  4.         public int DishID { get; set; }
  5.  
  6.         //fk
  7.         public int RestaurantID { get; set; }
  8.  
  9.         public int CategoryID { get; set; }
  10.  
  11.         public string Name { get; set; }
  12.  
  13.         public string Description { get; set; }
  14.  
  15.         public decimal Price { get; set; }
  16.        
  17.         // Navigation
  18.         public virtual Category Category { get; set; }
  19.         public virtual Restaurant Restaurant { get; set; }
  20.         public virtual ICollection<DishImage> DishImages { get; set; }
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement