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

Creating the schema

DTDL compiling

After Visual Studio has successfully compiled the previously created DTDL file, you will find a BDTD file inside the "_data" subfolder of your project folder.

Adding definitions from a BDTD file

Now we can add the class and list definitions of our BDTD file to the database schema. This is normally done with the Extend-Schema command in DataFSTools.
Open DataFS_Tools.exe as an admin (normally '%ProgramFiles%\Mobiland DataFS Server') and execute the following commands with the appropriate path to your BDTD file:
Open-Connection
Extend-Schema -DomainGuid "{E9F56A1D-4FD9-483E-A4FE-7522666AB7C6}" -BDTD "-yourPath-\_data\DataDefinition.bdtd"
Close-Connection
exit
Our BDTD files can also be added and the schema extended by loading them from resources in an application and calling the appropriate functions to extend the schema. See How to start for a sample.
Remarks: Definitions (classes, lists, …) that have been added to a schema can never be modified or deleted. If a modified class becomes a necessity, you have to create a copy of the old definition and give it a new GUID.
© 2022 Mobiland AG