Esempio n. 1
0
 public long CountByLevel(StandardLogLevels level)
 {
     using (IUnitOfWork uow = _UnitFactory.GetUnit(this))
     {
         uow.BeginTransaction();
         return uow.Query<LogEntity>().Count(p => level == StandardLogLevels.ALL_LEVELS || (p.Level != null && p.Level.ToLower().Contains(level.ToString())));
     }
 }
Esempio n. 2
0
 public long CountByLevel(StandardLogLevels level)
 {
     using (IUnitOfWork uow = _UnitFactory.GetUnit(this))
     {
         uow.BeginTransaction();
         return(uow.Query <LogEntity>().Count(p => level == StandardLogLevels.ALL_LEVELS || (p.Level != null && p.Level.ToLower().Contains(level.ToString()))));
     }
 }