.
├── LICENSE
├── README.md
├── multimodel.csproj
└── src
├── Airport.cs
├── Location.cs
└── MultimodelQS.cs
This sample code shows object, relational, and native access from a .NET application to InterSystems IRIS. Airport data is stored using objects and retrieved using SQL, and a custom data structure is created to handle route information between airports.
- Start with an installation of .NET and a running instance of InterSystems IRIS.
- Download the drivers from the ADO.NET section of the InterSystems Drivers Download page.
- Clone this repository.
- In your preferred IDE for .NET, create a project which includes this repository and the ADO.NET drivers as dependencies. For help, refer to Connecting Your Application
- In
multimodelQS.cs
, on lines 20-24, change the username, password, IP, port and namespace to point to your instance of InterSystems IRIS. - In multimodel.csproj, make sure that the target framework setting is appropriate for your system. The port should be the superserver port.
- In
multimodelQS.cs
, uncomment the following two lines:
// storeAirfare(irisNative);
// checkAirfare(irisNative);
- Run the code to see objects and SQL working side-by-side.
For a guided tutorial using this sample, visit Accessing Data in .NET Using Multiple Data Models on the InterSystems learning site.