csharp
using VelocityDb;
using VelocityDb.Session;
public class Person : VelocityDbPersistent
{
public string Name { get; set; }
public int Age { get; set; }
}
public class Program
{
static void Main(string[] args)
{
using (SessionNoServer session = new SessionNoServer("path/to/database"))
{
session.BeginUpdate();
Person person1 = new Person { Name = "Alice", Age = 25 };
Person person2 = new Person { Name = "Bob", Age = 30 };
session.Persist(person1);
session.Persist(person2);
session.Commit();
}
}
}