private ISession GetSessionFor(object entity) { string factoryKey = SessionFactoryKeyHelper.GetKey(entity); return(NHibernateSession.CurrentFor(factoryKey)); }
private ISession GetSessionFor(object entity) { string factoryKey = SessionFactoryAttribute.GetKeyFrom(entity); return(NHibernateSession.CurrentFor(factoryKey)); }