Last updated: 12/20/2025
End to end example
Introduction
The following end to end example contains:
- A SoftType toolbox
Eurostep.D2M.Domain.Model.- Note that this is generated from a sample configuration and has been stripped down for this example.
- The ShareAspace configuration tool can be used for generating SoftType toolboxes.
- A custom toolbox
MappingFwkDemo.Toolbox.Family.- Can deserialize and serialize
CSVand.XLSXfrom/to the "family model".
- Can deserialize and serialize
- A mapper
MappingFwkDemo.Mapper.FamilyToD2Mthat maps from the "family model" to the "sample D2M model". - A Test project
MappingFwkDemo.Tests.Mapping.

Pre-requisites
- Microsoft .NET 8 SDK
- IDE, e.g. Visual Studio Code, Visual Studio
- ShareAspace specific nuget packages
Eurostep.ModelFramework.Mapping._VERSION_.nupkgEurostep.ModelFramework.Mapping.Testing._VERSION_.nupkgEurostep.ModelFramework.Toolbox._VERSION_.nupkg
- Additional public nuget packages - handled by project setup.
- See
Directory.Packages.propsfile in sample package.
- See
Download sample
Caution
Sample code provided in here is for demonstration and educational purposes only. Sample code is not intended for use in a production environments. All production code should always follow development best practices. All sample code is supplied "AS IS" without any warranties or support.
Getting started
- Place ShareAspace nuget packages in a folder. Note the folder path.
- Unpackage the
MappingFwkDemo.ziparchive. - Open
nuget.config.- Set the
demovalue to the folder path where the ShareAspace nuget packages can be found.
- Set the
- Build the sample solution using the same version as the provided ShareAspace nuget packages.
- or.. open
Directory.Packages.propsand set the correct version for the ShareAspace nuget package references.
- or.. open
nuget.config example
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="demo" value="C:\temp\182nuget" />
</packageSources>
</configuration>
Directory.Packages.props example
<!-- ShareAspace private dependencies -->
<PackageVersion Include="Eurostep.ModelFramework.Mapping" Version="1.8.2.38" />
<PackageVersion Include="Eurostep.ModelFramework.Mapping.Testing" Version="1.8.2.38" />
<PackageVersion Include="Eurostep.ModelFramework.Toolbox" Version="1.8.2.38" />