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