Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Delete
- using (mySession.BeginTransaction())
- {
- mySession.Delete(loContact);
- mySession.Transaction.Commit();
- }
- // Edit
- using (mySession.BeginTransaction())
- {
- loContact.FirstName = "Jane";
- loContact.LastName = "Fonda";
- mySession.Update(loContact);
- mySession.Transaction.Commit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement