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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Net4x.DapperLibrary.Isam" Version="1.9.9.26271" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Net4x.DapperLibrary.Isam" Version="1.9.9.26271" />
                    
Directory.Packages.props
<PackageReference Include="Net4x.DapperLibrary.Isam" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Net4x.DapperLibrary.Isam --version 1.9.9.26271
                    
#r "nuget: Net4x.DapperLibrary.Isam, 1.9.9.26271"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Net4x.DapperLibrary.Isam@1.9.9.26271
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Net4x.DapperLibrary.Isam&version=1.9.9.26271
                    
Install as a Cake Addin
#tool nuget:?package=Net4x.DapperLibrary.Isam&version=1.9.9.26271
                    
Install as a Cake Tool

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.StoredProcedure is 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 as TestTable$. Match on the bare name when reading Schema.TableNames.
  • dBASE and FoxPro have one numeric field type: BYTE/SMALLINT/INTEGER/BIGINT all become an N field wide enough for their range and read back as a Long. GUID becomes a 36-character C field. Only a FoxPro table can hold Date/Time Extended.
  • dBASE DELETE flags the record, as dBASE does; indexes (.ndx/.mdx/.cdx) are left untouched and never used for seeks.
  • A DATETIME column is a date-only D field in dBASE and FoxPro. FoxProDapperContext therefore maps DateTime onto DATETIME2 — FoxPro's T field, 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 decimal whatever it was declared as — Convert.ToDouble, don't cast.
  • SaveDataTable inserts 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; setting DataTable.PrimaryKey does 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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