Example #1
0
 public ActionResult JsonTest()
 {
     var db = new FabricsEntities();
     db.Configuration.LazyLoadingEnabled = false;
     var data = db.Clients.Take(20).ToList();
     return Json(data, JsonRequestBehavior.AllowGet);
 }
Example #2
0
 public EFUnitOfWork()
 {
     Context = new FabricsEntities();
 }