Exemplo n.º 1
0
 public static List<HRStaffRecord> GetList(DynamicQueryStatement statement)
 {
     return GetList(statement.Query, statement.Parms);
 }
Exemplo n.º 2
0
        public static List<StudentRecord> GetStudents(DynamicQueryStatement dqs)
        {
            try
            {
                StudentsContext db = new StudentsContext();

                return db.StudentRecords.Where(dqs.Query, dqs.Parms)
                    .OrderBy( x => x.LastName + x.FirstName + x.MiddleInitial)
                    .ToList();
            }
            catch (Exception ex)
            {
                throw new Exception("Could not get students from database", ex);
            }
        }