public static int DeleteByFileImport(NHibernate.ISession session, int fileIndex) { var query = session.Query <MeterData>().Where(x => x.FileIndex == fileIndex); var result = query.Count(); session.DeleteMany(query); return(result); }
public static int DeleteByFileImport(NHibernate.ISession session, int fileIndex) { var query = session.Query <MeterData>().Where(x => x.FileIndex == fileIndex); var result = query.Count(); session.DeleteMany(query); return(result); }