Isam.Data.IsamClient
1.0.0.26270
dotnet add package Isam.Data.IsamClient --version 1.0.0.26270
NuGet\Install-Package Isam.Data.IsamClient -Version 1.0.0.26270
<PackageReference Include="Isam.Data.IsamClient" Version="1.0.0.26270" />
<PackageVersion Include="Isam.Data.IsamClient" Version="1.0.0.26270" />
<PackageReference Include="Isam.Data.IsamClient" />
paket add Isam.Data.IsamClient --version 1.0.0.26270
#r "nuget: Isam.Data.IsamClient, 1.0.0.26270"
#:package Isam.Data.IsamClient@1.0.0.26270
#addin nuget:?package=Isam.Data.IsamClient&version=1.0.0.26270
#tool nuget:?package=Isam.Data.IsamClient&version=1.0.0.26270
Isam.Data.IsamClient
A fully managed ADO.NET data provider for the non-Access Jet/ACE ISAM formats — Text/CSV, dBASE, FoxPro,
Excel, HTML and Lotus — shaped after Microsoft.Data.SqlClient. The files are read and written directly:
no Jet, ACE, OLE DB, ODBC or native code, so it runs anywhere .NET runs.
A connection string written for Microsoft.Jet.OLEDB.4.0 or Microsoft.ACE.OLEDB.12.0 works unchanged.
using Isam.Data.IsamClient;
using var cn = new IsamConnection(@"Data Source=C:\Data\Tables;Extended Properties=""dBASE IV;""");
cn.Open();
using var cmd = new IsamCommand(
"SELECT CNAME, BORN FROM CUST WHERE PRICE > @min ORDER BY CNAME", cn);
cmd.Parameters.AddWithValue("@min", 10m);
using var r = cmd.ExecuteReader();
while (r.Read())
{
Console.WriteLine($"{r.GetString(0)} {r.GetDateTime(1):d}");
}
Packages
| Package | Holds |
|---|---|
Isam.Data.IsamClient |
the provider and the Text, dBASE, FoxPro, HTML and Lotus formats — no third-party dependency |
Isam.Data.IsamClient.Excel |
the Excel format (.xls, .xlsx), on NPOI. Add it to read or write workbooks |
Jet.Data.SqlEngine |
the Jet SQL engine both this provider and Access.Data.AccessClient run on |
Targets net35, net40, net45, netstandard2.0 and netstandard2.1. The Excel package needs net45
or later, since NPOI does.
The data source
| Format | Data Source |
Tables are |
|---|---|---|
| Text | a directory | its .csv, .txt, .tab, .asc files, typed by schema.ini when there is one |
| dBASE | a directory | its .dbf files (.dbt memos, .ndx/.mdx indexes) |
| FoxPro | a directory or a .dbc |
its .dbf files (.fpt memos, .cdx indexes) |
| Excel | an .xls/.xlsx file |
its worksheets (Sheet1$), ranges (Sheet1$A1:C10) and named ranges |
| HTML | an .htm/.html file |
the <table> elements in it |
| Lotus | a .wk1/.wk3/.wk4 file |
its sheets |
Connection-string keywords
| Keyword | Default | Meaning |
|---|---|---|
Data Source |
— | The directory or file. Synonyms: DBQ, Database, FileName, DefaultDir |
Extended Properties |
— | The Jet/ACE ISAM name and its settings: Excel 12.0 Xml;HDR=YES;IMEX=1, dBASE IV;, Text;FMT=Delimited;CharacterSet=65001 |
Format |
from the string or the file | Text, DBase, FoxPro, Excel, Html, Lotus — the typed alternative |
Read Only |
false |
Opens every file for reading only. Mode=Read does the same |
Locking |
Shared |
None, Shared, ReadOnlyShared, Exclusive |
Code Page |
0 |
0 uses the one the file states, falling back to 1252. CharacterSet is the synonym |
Header Row |
true |
HDR: the first row holds column names |
Max Scan Rows |
8 |
Rows sniffed to infer types; 0 scans all. TypeGuessRows is the synonym |
Import Mode |
0 |
IMEX: 1 reads every column as text |
LIKE Mode |
Access |
Access wildcards (* ? #) or Ansi (% _) |
Journal |
true |
Keeps a before-image journal inside transactions |
Command Timeout |
30 |
Default IsamCommand.CommandTimeout, in seconds |
Provider, User ID, Persist Security Info, Driver, Jet OLEDB:* and the other OLE DB/ODBC keywords are
accepted and ignored, so an existing connection string does not have to be edited.
SQL
Jet SQL, from the same engine Access.Data.AccessClient uses: SELECT with joins, GROUP BY, HAVING,
subqueries, UNION, TOP; INSERT, UPDATE, DELETE; CREATE TABLE / DROP TABLE; the Access function
library (Format, IIf, DateAdd, Left, Nz, …); @name, :name and ? parameters.
What a format cannot express is refused rather than approximated: an ISAM source has no views, no stored procedures and no relationships, and a table this provider cannot write safely opens read-only.
What each format allows
| Format | Reads | Writes | Notes |
|---|---|---|---|
| Text | ✔ | ✔ | INSERT appends; UPDATE/DELETE rewrite the file. CREATE TABLE writes the file and its schema.ini section |
| dBASE | ✔ | ✔ | Rows change in place; DELETE flags the record, as dBASE does. Indexes (.ndx/.mdx) are left untouched and never used for seeks |
| FoxPro | ✔ | ✔ | As dBASE, with .fpt memos, the FoxPro field types and Visual FoxPro's null flags; a .dbc names the tables of a database. Tables it writes are read by the Visual FoxPro provider |
| Excel | ✔ | ✔ | Needs the Isam.Data.IsamClient.Excel package. A sheet with formulas or merged cells is read-only, and Excel has no date before 1900 |
| HTML | ✔ | ✔ | Writing regenerates the document, so one that holds more than its tables is read-only |
| Lotus | WK1 | WK1 | WK3 and WK4 are refused with the version they declare |
An ISAM source has no views, no stored procedures and no relationships: those schema collections come back
empty and CommandType.StoredProcedure is refused.
Status
| Part | State |
|---|---|
Jet.Data.SqlEngine — the shared Jet-SQL engine |
done, 863 tests |
| Provider framework: connection, command, reader, parameters, adapter, transactions, schema | done |
| Text, dBASE, FoxPro, HTML, Lotus back ends | done, 149 tests (19 of them against Jet, ACE and the Visual FoxPro provider) |
Isam.Data.IsamClient.Excel |
done, 20 tests (4 of them against ACE) |
| dBASE/FoxPro index files for seeks, HTML/Lotus oracles | not done — see docs/implementation-plan.md |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net35 is compatible. net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 3.5
- Jet.Data.SqlEngine (>= 1.0.0.26270)
- Net4x.AsyncBridge (>= 1.5.0.26262)
- Net4x.BaseTypes (>= 1.3.1.26262)
-
.NETFramework 4.0
- Jet.Data.SqlEngine (>= 1.0.0.26270)
- Net4x.AsyncBridge (>= 1.5.0.26262)
- Net4x.BaseTypes (>= 1.3.1.26262)
-
.NETFramework 4.5
- Jet.Data.SqlEngine (>= 1.0.0.26270)
- System.ValueTuple (>= 4.5.0)
-
.NETStandard 2.0
- Jet.Data.SqlEngine (>= 1.0.0.26270)
- System.Memory (>= 4.5.5)
- System.Text.Encoding.CodePages (>= 8.0.0)
-
.NETStandard 2.1
- Jet.Data.SqlEngine (>= 1.0.0.26270)
- System.Text.Encoding.CodePages (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0.26270 | 141 | 9/28/2026 |