Ext.Net.Store.MakeChanges C# (CSharp) Method

MakeChanges() private method

private MakeChanges ( ) : void
return void
        private void MakeChanges()
        {
            bool noDs = this.DataSourceID.IsEmpty();
            IDataSource ds = null;

            if (!noDs)
            {
                ds = this.GetDataSource();
            }

            if (ds == null && !noDs)
            {
                throw new HttpException("Can't find DataSource");
            }

            if (this.Reader.Reader == null)
            {
                throw new InvalidOperationException("The Store does not contain a Reader.");
            }

            XmlDocument xml = changingEventArgs.DataHandler.XmlData;

            if (noDs || ds.GetView(this.DataMember).CanUpdate)
            {
                this.MakeUpdates(ds, xml); 
            }

            if (noDs || ds.GetView(this.DataMember).CanDelete)
            {
                this.MakeDeletes(ds, xml);
            }

            if (noDs || ds.GetView(this.DataMember).CanInsert)
            {
                this.MakeInsertes(ds, xml);
            }
        }