System.Data.DataSet.Load C# (CSharp) Method

Load() public method

public Load ( IDataReader reader, LoadOption loadOption ) : void
reader IDataReader
loadOption LoadOption
return void
        public void Load(IDataReader reader, LoadOption loadOption, params DataTable[] tables) =>
            Load(reader, loadOption, null, tables);

Same methods

DataSet::Load ( IDataReader reader, LoadOption loadOption, FillErrorEventHandler errorHandler ) : void

Usage Example

Exemplo n.º 1
0
        protected DataSet.DSParameter baseUpdate(DataSet.DSParameter ds, string tableName)
        {
            if (_is_Single_Transaction)
            {
                try
                {
                    _base.BeginTransaction();
                    _base.SetConnection();
                    _db = _base.GetDatabase();
                    ds.Load(_base.Update(ds), LoadOption.OverwriteChanges, tableName);
                    _base.CommitTransaction();
                }
                catch (Exception exp)
                {
                    _base.RollBackTransaction();
                    throw exp;
                }
                finally
                {

                }
                return ds;
            }


            _base.SetConnection();
            _db = _base.GetDatabase();
            ds.Load(_base.Update(ds), LoadOption.OverwriteChanges, tableName);
            return ds;
        }
All Usage Examples Of System.Data.DataSet::Load