Skip to content

Instantly share code, notes, and snippets.

@taylonr
Created June 30, 2012 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taylonr/3025997 to your computer and use it in GitHub Desktop.
Save taylonr/3025997 to your computer and use it in GitHub Desktop.
Simple.Data
public ActionResult Index()
{
var m = Database.Open().Media.FindByName("KitKat Killer");
return View(new Media{Name = m.Name, Url = m.Url});
}
public class Media
{
public int Id { get; set; }
public string Name { get; set; }
public string Tag { 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