AppActs.Client.Repository.ApplicationRepository.FindAll C# (CSharp) 메소드

FindAll() 공개 메소드

public FindAll ( ) : IEnumerable
리턴 IEnumerable
        public IEnumerable<Application> FindAll()
        {
            try
            {
                return this.GetCollection()
                    .Find(Query<Application>.EQ<bool>(x => x.Active, true))
                    .SetFields(Fields.Exclude("_id"));
            }
            catch (Exception ex)
            {
                throw new DataAccessLayerException(ex);
            }
        }