Пример #1
0
        //use DbContext
        public void GetAll()
        {
            //use Db get student list
            var Orders = Db.Queryable <Orders>().ToList();

            //use  StudentDb get student list
            var events = EventsDb.GetList();
            //StudentDb.GetById
            //StudentDb.Delete
            //StudentDb.Update
            //StudentDb.Insert
            //StudentDb.GetPageList
            //....
            //SchoolDb.GetById
            //....
        }
Пример #2
0
 public List <Events> GetEvetns()
 {
     return(EventsDb.GetList());
 }