Can entities be attached to an ISession that weren't previously attached?
- by TheCloudlessSky
I'm playing around with NHibernate 3.0. So far things are pretty cool. I'm trying to attach an entity that wasn't detached previously:
var post = new Post(){ Id = 2 }
session.Update(post); // Thought this would work but it doesn't.
post.Title = "New Title After Update";
session.Flush();
Is this possible so that only Title gets updated? This is currently possible in EntityFramework. I'd like to not have to load Post from the database when I just need to update a few properties.