internal DataSetChangeset(DataSet sds, DataSet.Changes changes, bool initializeAtOnce)
		{
			if (changes == null)
				throw new ArgumentNullException("changes");
			lock (sds)
			{
				this.changes = changes;
				this.dataSet = sds;
				this.changeSetId = sds.Version;// +1;
				this.source = changes.ChangesetSource;

				if (initializeAtOnce)
					Initialize();
			}
		}
Beispiel #2
0
        internal DataSetChangeset(DataSet sds, DataSet.Changes changes, bool initializeAtOnce)
        {
            if (changes == null)
            {
                throw new ArgumentNullException("changes");
            }
            lock (sds)
            {
                this.changes     = changes;
                this.dataSet     = sds;
                this.changeSetId = sds.Version;                // +1;
                this.source      = changes.ChangesetSource;

                if (initializeAtOnce)
                {
                    Initialize();
                }
            }
        }