Skip to content

Instantly share code, notes, and snippets.

@stefansedich
Created May 22, 2011 01:00
Show Gist options
  • Save stefansedich/985050 to your computer and use it in GitHub Desktop.
Save stefansedich/985050 to your computer and use it in GitHub Desktop.
[Test]
public void Create_Some_Data()
{
var person = new Person{Name = "dsd", Age = 22};
var foo = new Foo {Description = "Testing"};
using(var session = CreateSession())
{
using(var tx = session.BeginTransaction())
{
session.Save(person);
session.Save(foo);
tx.Commit();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment