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()))); } }
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())))); } }