Пример #1
0
 public void Index()
 {
     using (var context = new SmartCampusDBEntities())
     {
         var query = context.Admission_Applicant.Select(a => a).ToList();
     }
 }
        public List <ReportDTO> GetAdmissionApplicant()
        {
            var context = new SmartCampusDBEntities();
            var result  = new List <ReportDTO>();

            var query = (from a in context.Admission_Applicant
                         select new ReportDTO()
            {
                FatherName = a.FatherName,
                FullName = a.FullName
            }).ToList();

            result = query;

            return(result);
        }