XbrlDotNet 0.0.5-beta1

This is a prerelease version of XbrlDotNet.
dotnet add package XbrlDotNet --version 0.0.5-beta1                
NuGet\Install-Package XbrlDotNet -Version 0.0.5-beta1                
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="XbrlDotNet" Version="0.0.5-beta1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XbrlDotNet --version 0.0.5-beta1                
#r "nuget: XbrlDotNet, 0.0.5-beta1"                
#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.
// Install XbrlDotNet as a Cake Addin
#addin nuget:?package=XbrlDotNet&version=0.0.5-beta1&prerelease

// Install XbrlDotNet as a Cake Tool
#tool nuget:?package=XbrlDotNet&version=0.0.5-beta1&prerelease                

xbrl-dotnet

Taxonomy

A taxonomy is a collection of contexts and some metadata.

[XbrlDimensionNamespace(prefix, uri)]
[XbrlTypedDomainNamespace(prefix, uri)]
record SomeTaxonomy(
    DateTime Start,
    DateTime End,
    public IEnumerable<IContext> Contexts =>
    [
        new SomeContext(...)
    ];
    ...
) : IReport.WithPeriod;

Context

A context is a set of defined concepts, an identity and a period (optional).

[XbrlExplicitMember(dimension, value)]
record SomeContext(
    [NlCommonDataAttribute] string Something
    ) : IContext
{
    IEntity IContext.Entity => new YourEntity(...);
}

record SomeContext(...) : IContext.WithPeriod
{
    IEntity IContext.Entity => new YourEntity(...);
}


record SomeContext(...) : IContext.WithInstant
{
    IEntity IContext.Entity => new YourEntity(...);
}

Concepts

Define concepts for your taxonomy:

class NlCommonDataAttribute() : 
    ConceptAttribute("nl-cd", "http://www.nltaxonomie.nl/nt17/sbr/20220301/dictionary/nl-common-data");

Entity

Define entities to be used on contexts:

class YourEntity(string value) : IEntity
{
    string IEntity.Value { get; } = value;
    string IEntity.Scheme => "http://www.kvk.nl/kvk-id";
}

Instance

Generate the report for an instance:

var intance = new SomeTaxonomy(DateTime.Now, DateTime.Now, new SomeContext(...), ...)
var xbrl = XbrlConverter.Convert();
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.5-beta1 65 2/7/2025
0.0.4 69 2/4/2025
0.0.3 78 2/4/2025
0.0.2 99 2/3/2025
0.0.1 81 2/3/2025