InterSystems.Data.XEP 2.4.0

Prefix Reserved
dotnet add package InterSystems.Data.XEP --version 2.4.0
                    
NuGet\Install-Package InterSystems.Data.XEP -Version 2.4.0
                    
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="InterSystems.Data.XEP" Version="2.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="InterSystems.Data.XEP" Version="2.4.0" />
                    
Directory.Packages.props
<PackageReference Include="InterSystems.Data.XEP" />
                    
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 InterSystems.Data.XEP --version 2.4.0
                    
#r "nuget: InterSystems.Data.XEP, 2.4.0"
                    
#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 InterSystems.Data.XEP@2.4.0
                    
#: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=InterSystems.Data.XEP&version=2.4.0
                    
Install as a Cake Addin
#tool nuget:?package=InterSystems.Data.XEP&version=2.4.0
                    
Install as a Cake Tool

InterSystems XEP

The XEP API provides support for high-speed .NET object storage and retrieval on the InterSystems IRIS data platform. It provides a high-performance object-relational mapping (ORM) persistence framework for .NET object hierarchies. XEP projects the data in .NET objects as persistent events (database objects that mirror the data structures in .NET objects) in the InterSystems IRIS database.

Getting started

Install the package

Install the IRISClient library for .NET with NuGet:

dotnet add package InterSystems.Data.XEP

The .nupkg file is also distributed with InterSystems IRIS under \<InterSystems IRIS install location\>/dev/dotnet/bin/.

Prerequisites

You need an InterSystems IRIS instance to use this package. The instance does not need to be on the same machine as the project using this package, but the project must be able to connect to the instance.

Before a persistent event can be created and stored, XEP must analyze a corresponding .NET class and import its schema into the database.

Examples

Adding a Class

Before creating the program source file, you need to create a .NET class. Your application will use this class to generate the objects for storage.

The following example uses a simple Person class:

namespace xep.demo
{
    public class Person
    {
        public string name;

        public Person() { }

        public Person(string str)
        {
            name = str;
        }
    }
}

This particular class is simple enough that XEP does not need any annotations to generate a schema. Annotations might be required for more complex classes.

Creating the XEP Program

You can now create a simple program to import the schema of the Person class, store events, and query its table:

using InterSystems.XEP;
using xep.demo;

// Generate sample data
int count = 12;
Person[] sampleArray = new Person[count];
for (int i = 0; i < count; i++)
{
    sampleArray[i] = new Person($"Name{i}");
}

string className = "xep.demo.Person";

// Connect to InterSystems IRIS and import a flat schema
EventPersister xepPersister = PersisterFactory.CreatePersister();
xepPersister.Connect("localhost", 51778, "EXTREME", "_SYSTEM", "SYS");
xepPersister.DeleteExtent(className);
xepPersister.ImportSchema(className);

// Store array of events
Event xepEvent = xepPersister.GetEvent(className);
xepEvent.Store(sampleArray);

// Query for the stored events
string sql = $"SELECT * FROM xep_demo.Person";
EventQuery<Person> xepQuery = xepEvent.CreateQuery<Person>(sql);
xepQuery.Execute();

for (int i= 0; i < count;i++)
{
    Person person = xepQuery.GetNext();
    Console.WriteLine($"Person {i} has name {person.name}");
}

// Be sure to close the query, event, and persister when finished
xepQuery.Close();
xepEvent.Close();
xepPersister.Close();

Documentation

For more information, see the InterSystems documentation and the InterSystems .NET XEP demo.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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 is compatible.  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 Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.4.0 230 6/3/2025