I am using ASP.NET/C# 4.0 with PetaPoco Micro ORM.
PetaPoco code retrieves a list of Years in a var. Now I want to populate an ASP.NET DropDown Control with the items in this var.
Does PetaPoco provide something to do this in less code? Alternatively, how can I loop through the var and add items in the DropDown?
var db = new PetaPoco.Database("myConnection");
var fy = new fy_master();
string Query = "SELECT fyperiod FROM fy_master ORDER BY fy_id desc";
var result = db.Execute(Query);