private static int SelectPartTest(string connectionString) { var table = new Home("ORMTest"); return table.All(where: "where BuildYear<@0", args: 2000).Count(); }
private static int Update100Test(string connectionString) { var table = new Home("ORMTest"); var toUpdate = table.All("WHERE BuildYear=@0", args: 2014).ToArray(); int counter = 0; foreach (var home in toUpdate) { home.BuildYear = 2015; counter++; } table.Save(toUpdate); return counter; }
private static int SelectAllTest(string connectionString) { var table = new Home("ORMTest"); return table.All().Count(); }