Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     using (var db = new bbdbContext())
     {
         Thread.Sleep(10000);
         var recipe = (from r in db.Recipes select r).FirstOrDefault();
         lblName.Text = recipe.name;
     }
 }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     using(var db = new bbdbContext())
     {
         Thread.Sleep(10000);
         var recipe = (from r in db.Recipes select r).FirstOrDefault();
         lblName.Text = recipe.name;
     }
 }