Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["productID"] != null)
     {
         productID            = int.Parse(Session["productID"] as String);
         Session["productID"] = null;
         product         = db.PRODUCTs.Where(x => x.Id == productID).FirstOrDefault();
         Image1.ImageUrl = product.Img;
         lbName.Text     = product.Name;
         lbprice.Text    = product.Price.ToString();
         lbcate.Text     = product.CATEGORY.Name;
         lbDes.Text      = product.Description;
         lbID.Text       = productID.ToString();
     }
 }
Example #2
0
 private void detach_PRODUCTs(PRODUCT entity)
 {
     this.SendPropertyChanging();
     entity.CATEGORY = null;
 }
Example #3
0
 private void attach_PRODUCTs(PRODUCT entity)
 {
     this.SendPropertyChanging();
     entity.CATEGORY = this;
 }
Example #4
0
 partial void DeletePRODUCT(PRODUCT instance);
Example #5
0
 partial void UpdatePRODUCT(PRODUCT instance);
Example #6
0
 partial void InsertPRODUCT(PRODUCT instance);