Net4x.DapperLibrary.Isam
1.9.9.26271
dotnet add package Net4x.DapperLibrary.Isam --version 1.9.9.26271
NuGet\Install-Package Net4x.DapperLibrary.Isam -Version 1.9.9.26271
<PackageReference Include="Net4x.DapperLibrary.Isam" Version="1.9.9.26271" />
<PackageVersion Include="Net4x.DapperLibrary.Isam" Version="1.9.9.26271" />
<PackageReference Include="Net4x.DapperLibrary.Isam" />
paket add Net4x.DapperLibrary.Isam --version 1.9.9.26271
#r "nuget: Net4x.DapperLibrary.Isam, 1.9.9.26271"
#:package Net4x.DapperLibrary.Isam@1.9.9.26271
#addin nuget:?package=Net4x.DapperLibrary.Isam&version=1.9.9.26271
#tool nuget:?package=Net4x.DapperLibrary.Isam&version=1.9.9.26271
DapperLibrary.Isam
DapperLibrary provider for the non-Access Jet/ACE ISAM formats — Text/CSV, dBASE, FoxPro, HTML and Lotus — over the
fully managed Isam.Data.IsamClient ADO.NET provider (no Jet, ACE, OLE DB, ODBC or native code).
Excel workbooks are the same provider but a separate package: Net4x.DapperLibrary.Excel.
Types
| Type | Role |
|---|---|
IsamDapperContext |
DapperContext for an ISAM source; Use() / UseOnce() register it with DapperContextFactory.Instance |
IsamProviderFactory |
Wraps IsamClientFactory; forwards IsamDataAdapter.RowUpdating / RowUpdated |
IsamDatabaseModel, IsamDatabaseModelTypes, IsamDatabaseEnumTypes |
Dialect, SQL type names, IsamDbType map |
IsamConnectionExtension.ToDapperContext() |
Context over a caller-owned IsamConnection |
DBaseDapperContext, FoxProDapperContext, TextDapperContext, LotusDapperContext, HtmlDapperContext |
One per format: each writes its own connection string, so you name a directory or a file |
IsamConnectionString |
Writes an ISAM connection string through the provider's own IsamConnectionStringBuilder |
Usage
Name the format and let its context write the connection string:
using var customers = DBaseDapperContext.ForDirectory(@"C:\Data\Tables");
using var legacy = FoxProDapperContext.ForDirectory(@"C:\Data\Fox");
using var exports = TextDapperContext.ForDirectory(@"C:\Data\Csv", "FMT=Delimited(;)");
using var sheets = LotusDapperContext.ForDirectory(@"C:\Data\Wk1");
using var page = HtmlDapperContext.ForDocument(@"C:\Data\report.html");
var rich = customers.Operations.Query<Customer>("SELECT * FROM Customers WHERE Credit > {0}", 100m);
Each format also registers with the factory — DBaseDapperContext.UseDirectory(path),
FoxProDapperContext.ForDatabase(dbc), LotusDapperContext.ForWorksheet(file),
HtmlDapperContext.UseDocument(file) — and each exposes ConnectionStringFor(...) when you only want the string.
A trailing Action<IsamConnectionStringBuilder> sets anything else (read-only, locking, code page) and runs last,
so it can override what the format chose.
IsamDapperContext itself still serves any source, for a connection string you already have. Data Source is a
directory for the multi-file formats and a file for the single-document ones.
IsamDapperContext.Use(@"Data Source=C:\Data\Tables;Extended Properties=""dBASE IV;""", "Isam.Data.IsamClient");
using var context = DapperContextFactory.Instance.CreateDapperContext();
// or around an existing connection
using var connection = new IsamConnection(@"Data Source=C:\Data\Tables;Extended Properties=""dBASE IV;""");
using var context2 = connection.ToDapperContext();
| Format | Data Source |
Context | Written as |
|---|---|---|---|
| Text | a directory | TextDapperContext.ForDirectory |
Extended Properties="Text;" (FMT=, CharacterSet=, …) |
| dBASE | a directory | DBaseDapperContext.ForDirectory |
Extended Properties="dBASE IV;" |
| FoxPro | a directory or a .dbc |
FoxProDapperContext.ForDirectory / .ForDatabase |
Extended Properties="FoxPro 2.6;" / "Visual FoxPro;" |
| HTML | an .htm/.html file |
HtmlDapperContext.ForDocument |
Format=Html |
| Lotus | a directory of .wk*, or one file |
LotusDapperContext.ForDirectory / .ForWorksheet |
Format=Lotus |
A connection string written for Microsoft.Jet.OLEDB.4.0 or Microsoft.ACE.OLEDB.12.0 works unchanged.
Dialect
One dialect covers every format: they all run the same Jet SQL engine, the one
Access.Data.AccessClient runs on. FoxProDapperContext narrows one thing — see the date/time note below.
| Setting | Value |
|---|---|
| Identifier delimiters | [ … ] |
| Parameter prefix | @ (@Par0, @Par1, …) |
| Statement terminator | ; — one statement per command, the provider has no batches |
| Datetime literal | #yyyy-MM-dd HH:mm:ss# |
Max (default string size) |
255 — past it a column is a Memo |
IdentityInitializer |
null — no ISAM numbers a COUNTER column; the INSERT states the key |
Type names: Int64 → BIGINT, Int32 → INTEGER, Bool → BIT, DateTime → DATETIME, Guid → GUID,
Single → REAL, Double → DOUBLE, text → CHAR(n) / VARCHAR(n) / LONGTEXT, binary → BINARY(n) /
LONGBINARY, unsigned 32/64-bit → DECIMAL(10,0) / DECIMAL(20,0).
Limits (from the provider and the formats)
- No views, no stored procedures, no relationships: those schema collections come back empty and
CommandType.StoredProcedureis refused. - What a format cannot express is refused rather than approximated, and a table that cannot be written safely opens read-only.
- Table names come back decorated by format: a text table as
TestTable#csv, a worksheet asTestTable$. Match on the bare name when readingSchema.TableNames. - dBASE and FoxPro have one numeric field type:
BYTE/SMALLINT/INTEGER/BIGINTall become anNfield wide enough for their range and read back as a Long.GUIDbecomes a 36-characterCfield. Only a FoxPro table can hold Date/Time Extended. - dBASE
DELETEflags the record, as dBASE does; indexes (.ndx/.mdx/.cdx) are left untouched and never used for seeks. - A
DATETIMEcolumn is a date-onlyDfield in dBASE and FoxPro.FoxProDapperContexttherefore mapsDateTimeontoDATETIME2— FoxPro'sTfield, which keeps the time of day. No other format has one, so through any other context a time is dropped. - A dBASE numeric column reads back as a
decimalwhatever it was declared as —Convert.ToDouble, don't cast. SaveDataTableinserts only. An ISAM table has no primary key for a SELECT to report, so ADO.NET cannot generate an UPDATE or a DELETE for one; settingDataTable.PrimaryKeydoes not help, since the builder asks the SelectCommand's schema. Change existing rows with an UPDATE statement of your own.- HTML and Lotus writes regenerate the document, so one holding more than its tables is read-only. Lotus reads and writes WK1; WK3 and WK4 are refused with the version they declare.
| 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 is compatible. 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
- Isam.Data.IsamClient.Base (>= 1.0.0.26271)
- Net4x.DapperLibrary.Base (>= 1.9.9.26271)
-
.NETFramework 4.0
- Isam.Data.IsamClient.Base (>= 1.0.0.26271)
- Net4x.DapperLibrary.Base (>= 1.9.9.26271)
-
.NETFramework 4.5
- Isam.Data.IsamClient.Base (>= 1.0.0.26271)
- Net4x.DapperLibrary.Base (>= 1.9.9.26271)
-
.NETFramework 4.6.1
- Isam.Data.IsamClient.Base (>= 1.0.0.26271)
- Net4x.DapperLibrary.Base (>= 1.9.9.26271)
- System.Configuration.ConfigurationManager (>= 9.0.0)
-
.NETStandard 2.0
- Isam.Data.IsamClient.Base (>= 1.0.0.26271)
- Net4x.DapperLibrary.Base (>= 1.9.9.26271)
- System.Configuration.ConfigurationManager (>= 9.0.0)
-
.NETStandard 2.1
- Isam.Data.IsamClient.Base (>= 1.0.0.26271)
- Net4x.DapperLibrary.Base (>= 1.9.9.26271)
- System.Configuration.ConfigurationManager (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Net4x.DapperLibrary.Isam:
| Package | Downloads |
|---|---|
|
Net4x.DapperLibrary.Excel
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.9.9.26271 | 156 | 9/28/2026 |