Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. var session = Repository.Session;
  2. using (var tx = session.BeginTransaction())
  3. {
  4. var viewModel = new ViewModel();
  5. viewModel.Cars = session.Query<Car>();
  6. viewModel.Dogs = session.Query<Dog>();
  7. viewModel.Cats = session.Query<Cat>();
  8. viewModel.Birds = session.Query<Bird>();
  9. tx.Commit();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement