public override IEnumerable <TModel> Update(ISession currentSession, IEnumerable <TModel> models)
 {
     global::NHibernate.IStatelessSession nativeSession = GetNativeSession(currentSession);
     foreach (TModel model in models)
     {
         nativeSession.Update(model);
     }
     return(models);
 }
 public override TModel Update(ISession currentSession, TModel model)
 {
     global::NHibernate.IStatelessSession nativeSession = GetNativeSession(currentSession);
     nativeSession.Update(model);
     return(model);
 }