HealthInformationProgram.Data.Repositories.DiagnosisRepository.GetAll C# (CSharp) Method

GetAll() public method

public GetAll ( ) : List
return List
        public List<lkup_diag> GetAll()
        {
            try
            {
                using (var ctx = new ClinicDataContext(connString))
                {

                    return ctx.lkup_diag.OrderBy(x => x.user_intrfc_sort_ord).ToList();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

Usage Example

Esempio n. 1
0
        public void Can_GetAllDiagnosis()
        {
            var repo = new DiagnosisRepository();
            var diagnosisList = repo.GetAll();

            Assert.IsNotNull(diagnosisList);
            Assert.IsTrue(diagnosisList.Count > 0);
        }
All Usage Examples Of HealthInformationProgram.Data.Repositories.DiagnosisRepository::GetAll