.NET Exposures

The Exposures command from the Browse menu in the Jade Platform development environment enables you to define a .NET exposure. For details about using the .NET Exposure wizard, see "Using the .NET Exposure Wizard", in Chapter 17 of the Development Environment User's Guide.

A .NET exposure definition is a collection of Jade classes, methods, and properties that are generated to create a .NET class library for an existing Jade schema.

When a Jade .NET exposure is generated, the following files are created.

File Contains…
Exposure-name.csproj A simple C# project file that includes all class files and creates a C# library with the namespace Exposure-name.
Exposure-name.config An example application configuration file that can be used without modification for a test application or to provide code fragments for production configuration files.
Class-name.cs For each exposed class, a C# class file is created containing the class definition in the namespace Exposure-name.
JoobContextExtensions.cs JoobContext extension methods for creating instances of any exposed class that have a create method with parameters, which allows these objects to be created on a specific JoobContext.

You can open the Exposure‑name.csproj C# project file using Microsoft Visual Studio and create the library file Exposure‑name.dll, which defines the namespace Exposure‑name containing the exposed classes. You can then include this DLL as a reference in a .NET application project, to enable access to the Jade classes.