https://github.com/intersystems/quickstarts-multimodel-dotnet
This code shows multi-model access in .NET. It is required for the .NET Try It in the Multimodel quickstart
https://github.com/intersystems/quickstarts-multimodel-dotnet
Last synced: 5 months ago
JSON representation
This code shows multi-model access in .NET. It is required for the .NET Try It in the Multimodel quickstart
- Host: GitHub
- URL: https://github.com/intersystems/quickstarts-multimodel-dotnet
- Owner: intersystems
- License: mit
- Created: 2018-11-02T20:34:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-13T15:29:53.000Z (over 1 year ago)
- Last Synced: 2024-12-13T17:13:43.257Z (over 1 year ago)
- Language: C#
- Size: 854 KB
- Stars: 1
- Watchers: 16
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://intersystems-community.github.io/iris-driver-distribution/).
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](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=ADRIVE#ADRIVE_dotnet)
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);
```
8. 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](https://learning.intersystems.com/course/view.php?name=DotNETMultiModel) on the InterSystems learning site.