Skip to content

Instantly share code, notes, and snippets.

@samueleresca
Last active December 4, 2015 20:50
Show Gist options
  • Save samueleresca/d132fc1daef92235e30c to your computer and use it in GitHub Desktop.
Save samueleresca/d132fc1daef92235e30c to your computer and use it in GitHub Desktop.
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