Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pessoa carlos = new Pessoa() { Nome = "Carlos", PessoaID = 1, Telefone = "6655-2211" };
- using (var transacao = sessao.BeginTransaction())
- {
- sessao.Save(carlos);
- transacao.Commit();
- }
- var pessoa1 = sessao.Query<Pessoa>().FirstOrDefault();
- System.Console.WriteLine(pessoa1.Nome);
- System.Console.ReadKey();
- sessao.Dispose();
Add Comment
Please, Sign In to add comment