Skip to content

This code shows multi-model access in .NET. It is required for the .NET Try It in the Multimodel quickstart

License

Notifications You must be signed in to change notification settings

intersystems/quickstarts-multimodel-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

multimodel-dotnet-quickstart

In this repository

.
├── LICENSE
├── README.md
├── multimodel.csproj
└── src
├── Airport.cs
├── Location.cs
└── MultimodelQS.cs

How to use this sample on your own

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.

  1. Start with an installation of .NET and a running instance of InterSystems IRIS.
  2. Download the drivers from the ADO.NET section of the InterSystems Drivers Download page.
  3. Clone this repository.
  4. 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
  5. In multimodelQS.cs, on lines 20-24, change the username, password, IP, port and namespace to point to your instance of InterSystems IRIS.
  6. In multimodel.csproj, make sure that the target framework setting is appropriate for your system. The port should be the superserver port.
  7. In multimodelQS.cs, uncomment the following two lines:
// storeAirfare(irisNative);
// checkAirfare(irisNative);
  1. Run the code to see objects and SQL working side-by-side.

Guided tutorial

For a guided tutorial using this sample, visit Accessing Data in .NET Using Multiple Data Models on the InterSystems learning site.

About

This code shows multi-model access in .NET. It is required for the .NET Try It in the Multimodel quickstart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages