GitHub    Download    Forum
Overview
Tutorial
Database setup
Preparing the project
Establish the connection
Shut down the connection
DTDL types
Creating the schema
DADL classes
Entry point object
Write and read attributes
Write and read lists
Extending the schema
Modified entry point object
Write and read objects
Write and read object lists
C++ API
C# API
DTDL
DADL
Setup

DataFS – Tutorial

This tutorial shows you how to create an application to use DataFS. The project demonstrates various functions to read from and write to the database. The intention is to familiarize you with all the steps needed to build and run applications for DataFS.

GitHub

The code for this tutorial can be found on GitHub.
Download projects from GitHub

Step 1

We are going to create a console application in which we create a 'Supplies' object with various attributes: a description, a time when it was last updated, and a list of website addresses with our preferred shops to buy new items from.

Step 2

In a second step, we will extend the object by adding the 'Inventory' class to it. Then, we will create a 'Person' object that the inventory will be linked to, so we know who is responsible for our inventory.
In the end, we will also build the inventory item objects and link to them from our inventory with a new list.
© 2022 Mobiland AG