/// <summary>
        /// Update into ProvinceWarehouseSpare
        /// </summary>
        /// <param name="provincewarehousespare">ProvinceWarehouseSpare</param>
        public void UpdateProvinceWarehouseSpare(ProvinceWarehouseSpare provincewarehousespare)
        {
            if (provincewarehousespare == null)
            {
                return;
            }

            if (this._context.IsAttached(provincewarehousespare))
            {
                this._context.ProvinceWarehouseSpares.Attach(provincewarehousespare);
            }

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

            if (!this._context.IsAttached(provincewarehousespare))
            {
                this._context.ProvinceWarehouseSpares.AddObject(provincewarehousespare);
            }

            this._context.SaveChanges();
        }