csharp
string databasePath = @"C:\MyDatabase";
using (var session = new Session(databasePath))
{
session.BeginUpdate();
session.Commit();
}
csharp
Person person = new Person
{
Name = "John",
Age = 30
};
session.Persist(person);
csharp
IEnumerable<Person> persons = session.AllObjects<Person>();
foreach (Person person in persons)
{
Console.WriteLine(person.Name);
}