public object SelectAll() { List <PatientXref> ptInfo = null; using (var ct = new ContractEntities(ConnStr.GetConnectionStringEF(_contract))) { var query = Implementor.GetPatientXrefQuery(ct); ptInfo = query.ToList(); } return(ptInfo); }
public object SelectAll() { try { List <PatientNote> ptInfo = null; using (var ct = new ContractEntities(ConnStr.GetConnectionStringEF(_contract))) { var query = Implementor.GetPatientNotesQuery(ct); ptInfo = query.ToList(); } return(ptInfo); } catch (Exception ex) { LoggerDomainEvent.Raise(LogStatus.Create("PatientsNotesRepository:SelectAll(): " + ex.Message, false)); throw; } }
public object SelectAll() { try { Dictionary <int, PatientInfo> ptInfo = null; using (var ct = new ContractEntities(ConnStr.GetConnectionStringEF(_contract))) { var query = Implementor.GetPatientInfoQuery(ct); ptInfo = query.ToDictionary(r => Convert.ToInt32(r.PatientId)); } return(ptInfo); } catch (Exception ex) { LoggerDomainEvent.Raise(LogStatus.Create("PatientsContractRepository:SelectAll(): " + ex.Message, false)); throw; } }