Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Quick demo

danielwertheim edited this page Apr 13, 2012 · 4 revisions
//Model
public class Customer
{
    public Guid Id { get; set; }
    public int CustomerNo { get; set; }
    public string Name { get; set; }
}

//Setup database
var db = "myConnectionStringOrName".CreateSql20012Db();
db.EnsureNewDatabase();

//Use the database
db.UseOnceTo().Insert(myCustomer);

var r = db.UseOnceTo().Query<Customer>(c => Name == "Daniel").SingleOrDefault();
Clone this wiki locally