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); }


上一篇:
下一篇:
切换中文