Last active
December 4, 2015 20:50
-
-
Save samueleresca/d132fc1daef92235e30c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using Bongles.WebAPI.Controllers; | |
namespace Bungles.FindDrinks.Models | |
{ | |
/// | |
/// The following class describes Location entity | |
/// | |
public class Location | |
{ | |
[Key] | |
public int id { get; set; } | |
public string gogId { get; set; } | |
public string address { get; set; } | |
public string telephone { get; set; } | |
public string description { get; set; } | |
public string geolocation { get; set; } | |
public string name { get; set; } | |
public string openingHours { get; set; } | |
[Range(1.0, 5.0)] | |
public float rating { get; set; } | |
public string website { get; set; } | |
//One Location, N Drinks(1-N) | |
public virtual IEnumerable drinks { get; set; } | |
public string url { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment