From what I have gathered. the DbSet
is a typed entity cache, and on Save, a DbContext
polls all DbSets
for entities in need of persistence. In NHibernate, the caching and change detection for all entity types are combined in an ISession
instance.
So, to convert very simple EF code to NH code, I can do away with the DbSet
and just perform all operations straight on the session?