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

Hello Tweeps

danielwertheim edited this page Apr 13, 2012 · 2 revisions

SisoDb tries to stay out of your way. You could even fit it in a Tweet.

var db = "cnStringOrName".CreateSql2012Db();
db.EnsureNewDatabase();
db.UseOnceTo().Insert(new Tweet{Msg="Hello tweeps!"});

Of, course you have to have specified the Model, Tweet, but that's simple.

public class Tweet
{
    public Guid Id { get; set; }
    public string Msg { get; set; }
}
Clone this wiki locally