Created
May 22, 2011 01:00
-
-
Save stefansedich/985050 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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