public static void AddPrdcat(IPrdcatView prdcatView) { tbl_Prdcat prdcat = new tbl_Prdcat(); prdcat.PrdcatName = prdcatView.PrdcatName; prdcat.Prdcat_ = prdcatView.PrdcatId; prdcat.PrdcatNumber = prdcatView.PrdcatNumber; MerpDatabase().tbl_Prdcat.AddObject(prdcat); }
/// <summary> /// Create a new tbl_Prdcat object. /// </summary> /// <param name="prdcat_">Initial value of the Prdcat_ property.</param> public static tbl_Prdcat Createtbl_Prdcat(global::System.Int32 prdcat_) { tbl_Prdcat tbl_Prdcat = new tbl_Prdcat(); tbl_Prdcat.Prdcat_ = prdcat_; return tbl_Prdcat; }
/// <summary> /// Deprecated Method for adding a new object to the tbl_Prdcat EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotbl_Prdcat(tbl_Prdcat tbl_Prdcat) { base.AddObject("tbl_Prdcat", tbl_Prdcat); }
static IPrdcatView CreateProductcategory(tbl_Prdcat prdcat) { return ProductFactory.createPrdcat(prdcat.Prdcat_, prdcat.PrdcatNumber, prdcat.PrdcatName); }