Ejemplo n.º 1
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();
			}
		}
Ejemplo n.º 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();
                }
            }
        }