Skip to content

Instantly share code, notes, and snippets.

@tunatoksoz
Created August 18, 2009 15:08
Show Gist options
  • Select an option

  • Save tunatoksoz/169767 to your computer and use it in GitHub Desktop.

Select an option

Save tunatoksoz/169767 to your computer and use it in GitHub Desktop.
using (ISession s = OpenSession())
{
var item = s.Get<Member>(id);
item.FirstName = "blah";
var ssi = ((ISessionImplementor) s);
EntityEntry ee = ssi.PersistenceContext.GetEntry(item);
var loaded=ee.GetLoadedValue("FirstName");
var current = item.FirstName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment