Download and install Last updated: 2026-11-16
EdiFabric 11.2.0 is a .NET library. Download it from this page, or install it from nuget.org. Then add the C# EDI templates for your transactions and call License.EnsureToken with your serial key.
Download ediFabric .NET Or install from NuGet Sign up free for Community
Start with the C# .NET examples
The quickest way to see ediFabric .NET working is to run the examples: Visual Studio solutions for each EDI standard, with sample files and the demo serial key already set.
Every plan uses the same library and the same C# templates, so upgrading from the community plan replaces only the serial key. See Replace the community plan serial key with your full one.
Download
The ediFabric .NET downloads are:
| Download | Contains | File |
|---|---|---|
| ediFabric .NET 11.2.0 | The EdiFabric assemblies for .NET 8, .NET 9, .NET 10 and .NET Framework 4.8: the parser, the generator and the validator | Download (.zip 2.14 MB) |
| Entity Framework DbContext | One DbContext file per version for X12, EDIFACT, EANCOM, HL7, IATA and NCPDP, and the HIPAA 5010 Entity Framework templates with their DbContext files, for EF6 and EF Core | Download (.zip 1.83 MB) |
Unzip ediFabric .NET and add a reference to the assembly whose target matches your project: .NET 8, .NET 9, .NET 10, or .NET Framework 4.8. A project that uses PackageReference should install the NuGet package instead of mixing in a loose DLL.
You need the Entity Framework DbContext download only to save EDI data to a database. It doesn't include the EDI templates, except for HIPAA 5010: download the templates for your transactions from the EDI spec library. How to add the templates and the DbContext to a project, and create the database, is in Integrate EDI data with Entity Framework.
Or install from nuget.org
The EdiFabric NuGet package has the same assemblies as the download. From the project directory:
dotnet add package EdiFabricIn Visual Studio, open Tools → NuGet Package Manager → Package Manager Console and run:
Install-Package EdiFabricRestore and build:
dotnet restore
dotnet buildAdd the EDI templates
The EDI templates for your transactions are C# files. Download them from the EDI spec library and add them to a class library, as described in EDI templates. Every plan, Community or paid, uses the same templates.
Flat-file models are not in the EDI spec library. They are C# classes in the FlatFile.NET examples.
The C# .NET examples ship as net6.0 and net48 solutions, with the templates they use. To try a later .NET, change TargetFramework and rebuild.
Apply the serial key
To evaluate without an account, use the demo serial key bd96a836feca45cb91c86ee65d281f52 until its limited quota runs out. The same key works for ediFabric Native and Cloud. Then sign up free for Community and copy your own serial from Your account. Call this before any parse, generate, validate, or acknowledge. The same serial covers ediFabric .NET, Native, and Cloud on that plan.
// Every plan, from 11.2.0: gets, caches and refreshes the license; refreshes a token that expires within N seconds
License.EnsureToken(serial, seconds: 3600);
// Enterprise and Perpetual: apply a token you store yourself, such as a long-lived token
License.SetToken(token);The examples come with the demo serial key in TrialSerialKey in Config.cs (for X12, NET Framework 4.8/EdiFabric.Examples.X12.Common/Config.cs), so they run without an account. When its quota runs out, paste your Community serial there. The .NET 6 projects link that file. The examples call License.EnsureToken(Config.TrialSerialKey, 3600).
Community is 250 operations per day, non-production, and never expires. One operation is one parse, generate, validate, or acknowledge call. Past the quota, calls throw LicenseException with error 639. Error 635 means the serial was never set.
Read a file
using EdiFabric.Core.Model.Edi;
using EdiFabric.Framework.Readers;
using EdiFabric.Templates.X12004010;
License.EnsureToken(serial, seconds: 3600);
var ediStream = File.OpenRead(@"Files\X12\PurchaseOrders.txt");
List<IEdiItem> ediItems;
using (var ediReader = new X12Reader(ediStream, "ClassLibrary1"))
ediItems = ediReader.ReadToEnd().ToList();
var purchaseOrders = ediItems.OfType<TS850>();ClassLibrary1 is the assembly name of the class library that holds the C# templates for the 850. To run a complete solution instead, clone X12.NET and run the demo, as described in C# .NET examples:
cd "NET 6/EdiFabric.Examples.X12.Demo"
dotnet runReplace the community plan serial key with your full one
Every plan uses the same EdiFabric package and the same C# templates, so you keep the package, the template projects and the code as they are. Replace only the serial key, as described in Apply the serial key, and keep calling License.EnsureToken, which works on every plan. Use License.SetToken only on Enterprise and Perpetual hosts that store offline tokens themselves.
Implement a token cache
You must implement a token cache to reduce the number of roundtrips to the authentication API and avoid exceeding the daily quota limits. Apply the serial key shows License.EnsureToken and License.SetToken. For more information, see the Serial Key Authentication article.
