public bool SetDataRoot(global::System.Object newDataRoot) { if (newDataRoot != null) { this.dataRoot = (global::DVDShop.Models.Product)newDataRoot; return(true); } return(false); }
// Update methods for each path node used in binding steps. private void Update_(global::DVDShop.Models.Product obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_ProductImage(obj.ProductImage, phase); this.Update_ProductName(obj.ProductName, phase); this.Update_ProductPrice(obj.ProductPrice, phase); this.Update_ProductID(obj.ProductID, phase); this.Update_Category(obj.Category, phase); this.Update_SubCategory(obj.SubCategory, phase); } } }