/// <summary>
        /// Update into ProvinceWarehouse
        /// </summary>
        /// <param name="provincewarehouse">ProvinceWarehouse</param>
        public void UpdateProvinceWarehouse(ProvinceWarehouse provincewarehouse)
        {
            if (provincewarehouse == null)
            {
                return;
            }

            if (this._context.IsAttached(provincewarehouse))
            {
                this._context.ProvinceWarehouses.Attach(provincewarehouse);
            }

            this._context.SaveChanges();
        }
        /// <summary>
        /// Insert into ProvinceWarehouse
        /// </summary>
        /// <param name="provincewarehouse">ProvinceWarehouse</param>
        public void InsertProvinceWarehouse(ProvinceWarehouse provincewarehouse)
        {
            if (provincewarehouse == null)
            {
                return;
            }

            if (!this._context.IsAttached(provincewarehouse))
            {
                this._context.ProvinceWarehouses.AddObject(provincewarehouse);
            }

            this._context.SaveChanges();
        }