示例#1
0
 public List <Student> GetAllStudent()
 {
     using (SCContext context = new SCContext(_contextName)) {
         IUnitOfWork     uow             = new UnitOfWork(context);
         StudentBusiness studentBusiness = new StudentBusiness(uow);
         var             students        = studentBusiness.GetAllStudent();
         return(students.ToList());
     }
 }