public DbfRecord(DbfTable dbfTable) { Values = new List <IDbfValue>(); foreach (var dbfColumn in dbfTable.Columns) { var dbfValue = CreateDbfValue(dbfColumn, dbfTable.Memo, dbfTable.CurrentEncoding); Values.Add(dbfValue); } }
public DbfRecord(DbfTable dbfTable, DbfDataReaderOptions options) { Values = new List <IDbfValue>(); foreach (var dbfColumn in dbfTable.Columns) { var dbfValue = CreateDbfValue(dbfColumn, dbfTable.Memo, options); Values.Add(dbfValue); } }
public override void Close() { try { DbfTable?.Close(); } finally { DbfTable = null; DbfRecord = null; } }
public DbfRecord(DbfTable dbfTable) { _encoding = dbfTable.CurrentEncoding; _recordLength = dbfTable.Header.RecordLength; _buffer = new byte[_recordLength]; Values = new List <IDbfValue>(); foreach (var dbfColumn in dbfTable.Columns) { var dbfValue = CreateDbfValue(dbfColumn, dbfTable.Memo); Values.Add(dbfValue); } }
public DbfRecord ReadRecord() { DbfRecord dbfRecord; bool skip; do { dbfRecord = DbfTable.ReadRecord(); if (dbfRecord == null) { break; } skip = _options.SkipDeletedRecords && DbfRecord.IsDeleted; } while (skip); return(dbfRecord); }
public override bool Read() { bool result; bool skip; do { result = DbfTable.Read(DbfRecord); if (!result) { break; } skip = _options.SkipDeletedRecords && DbfRecord.IsDeleted; } while (skip); return(result); }
public DbfRecord(DbfTable dbfTable) : this(dbfTable, new DbfDataReaderOptions()) { }
public DbfDataReader(string path) { DbfTable = new DbfTable(path); DbfRecord = new DbfRecord(DbfTable); }
public DbfRecord ReadRecord() { return(DbfTable.ReadRecord()); }
public DbfDataReader(string path, Encoding encoding) { DbfTable = new DbfTable(path, encoding); DbfRecord = new DbfRecord(DbfTable); }
public override bool Read() { return(DbfTable.Read(DbfRecord)); }
public DbfDataReader(Stream stream, Stream memoStream, DbfDataReaderOptions options) { _options = options; DbfTable = new DbfTable(stream, memoStream, options.Encoding); DbfRecord = new DbfRecord(DbfTable); }
public DbfDataReader(string path, DbfDataReaderOptions options) { _options = options; DbfTable = new DbfTable(path, options.Encoding); DbfRecord = new DbfRecord(DbfTable); }
public DbfDataReader(string path) { DbfTable = new DbfTable(path); DbfRecord = new DbfRecord(DbfTable, new DbfDataReaderOptions()); }
public DbfDataReader(string path, Encoding encoding, DbfDataReaderOptions options) { DbfTable = new DbfTable(path, encoding); DbfRecord = new DbfRecord(DbfTable, options); }