DMR.NET.Entities 1.0.2

dotnet add package DMR.NET.Entities --version 1.0.2
                    
NuGet\Install-Package DMR.NET.Entities -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DMR.NET.Entities" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DMR.NET.Entities" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="DMR.NET.Entities" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DMR.NET.Entities --version 1.0.2
                    
#r "nuget: DMR.NET.Entities, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=DMR.NET.Entities&version=1.0.2
                    
Install DMR.NET.Entities as a Cake Addin
#tool nuget:?package=DMR.NET.Entities&version=1.0.2
                    
Install DMR.NET.Entities as a Cake Tool

DMR.NET

DMR.NET is a package designed to help developers interact with the data provided by the Danish Vehicle Registry (DMR). Its primary goal is to provide the logic for downloading and parsing DMR data, enabling developers to create their own services that can ingest this data and store it in their own databases for faster retrieval and processing. By using DMR.NET, developers can easily integrate DMR data into their applications and optimize access to vehicle-related information.

NuGet Packages

DMR.NET

The DMR.NET package provides the logic to download the latest DMR database from an FTP server and parse it into usable models. It includes functionality for interacting with the DMR database, enabling easy retrieval and processing of DMR data.

DMR.NET.Entities

The DMR.NET.Entities package provides the data models used by the DMR.NET project. It includes all the necessary entities that represent the structure of the DMR data.

How it works

DMR has a publicly available database with all vehicles. The database is an 100+ GB XML file located on an FTP server. DMR.NET can download the latest DMR database to the local machine, and parse the DMR entries as objects.

Configuration

Credentials can be found here under "Statistikudtræk". The configuration below should work as long as the credentials hasn't been changed. DMR.NET has an included DmrFtpOptions model.

{
  "DmrFtp": {
    "Host": "5.44.137.84",
    "Username": "dmr-ftp-user",
    "Password": "dmrpassword",
    "SourcePath": "/ESStatistikListeModtag/",
    "DestinationPath": "/home/user/dmr/"
  }
}

Example project is on the way.

Contributing and Limitations

Incomplete DMR Properties

Please note that the project does not yet contain all the properties defined by the DMR (Dansk Motor Register) schema. While we have implemented a significant portion of the properties, there are still many to be added. We encourage and greatly appreciate contributions to expand the coverage of DMR properties. If you find missing properties or encounter any issues, feel free to open a pull request or raise an issue!

Testing

Currently, the project is not thoroughly tested, and we are actively working to improve test coverage. If you encounter any bugs or unexpected behavior, we welcome feedback and contributions to help us improve the quality and reliability of the project.

How to Contribute

We highly appreciate any contributions to this project! Whether it's adding missing properties, improving code quality, or enhancing tests, your contributions will help make this project more robust. Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Implement your changes, making sure to adhere to the coding style of the project.
  4. Run existing tests and add new ones if necessary.
  5. Submit a pull request with a clear description of the changes.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DMR.NET.Entities:

Package Downloads
DMR.NET

The DMR.NET package provides the logic to download the latest DMR database from an FTP server and parse it into usable models. It includes functionality for interacting with the DMR database, enabling easy retrieval and processing of DMR data.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 99 3/14/2025
1.0.1 113 3/14/2025
1.0.0 153 3/12/2025