XbrlDotNet 0.0.5-beta2
This is a prerelease version of XbrlDotNet.
dotnet add package XbrlDotNet --version 0.0.5-beta2
NuGet\Install-Package XbrlDotNet -Version 0.0.5-beta2
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-beta2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XbrlDotNet --version 0.0.5-beta2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: XbrlDotNet, 0.0.5-beta2"
#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-beta2&prerelease // Install XbrlDotNet as a Cake Tool #tool nuget:?package=XbrlDotNet&version=0.0.5-beta2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
xbrl-dotnet
Namespaces
Everyting in XBRL is contained in a namespace, define the used namespaces first:
public static readonly XNamespace FrcVtDim = "https://www.sbrnexus.nl/vt17/frc/20240131/dictionary/frc-vt-axes";
...
Taxonomy
A taxonomy is a collection of contexts and metadata.
record SomeTaxonomy(
DateTime Start,
DateTime End,
...
) : ITaxonomy.PeriodDuration
{
NamespacePrefix ITaxonomy.Domain => new("frc-vt-dm", FrcVtDm);
NamespacePrefix ITaxonomy.Dimension => new("frc-vt-dim", FrcVtDim);
IEnumerable<IContext> ITaxonomy.Contexts =>
[
new SomeContext(...)
];
}
Context
A context is a set of defined concepts, an identity and a period (optional).
record SomeContext([NlCommonDataAttribute] string Something) : IContext
{
IEntity IContext.Entity => new YourEntity(...);
ExplicitMember[] IContext.ExplicitMembers => [];
TypedMember[] IContext.TypedMembers => [];
}
record SomeContext(DateTime Start, DateTime End, ...) : IContext.PeriodDuration
{
...
}
record SomeContext(DateTime Instant, ...) : IContext.PeriodInstant
{
...
}
Concepts
Define concepts for the taxonomy:
class NlCommonDataAttribute() :
ConceptAttribute("nl-cd", "http://www.nltaxonomie.nl/nt17/sbr/20220301/dictionary/nl-common-data");
Entity
Define the entity/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";
}
Dimensions
Define typed members:
TypedMember[] IContext.TypedMembers =>
[
new (FrcVtDm + "OwnersTypedMember", FrcVtDim + "OwnersAxis", SomeValue)
];
Define explicit members:
ExplicitMember[] IContext.ExplicitMembers =>
[
new(FrcVtDm + "ClientMember", FrcVtDim + "ClientAxis")
];
Instance
Generate an instance report:
var intance = new SomeTaxonomy(DateTime.Now, DateTime.Now, new SomeContext(...), ...)
var xbrl = XbrlConverter.Convert(instance);
Product | Versions 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.
-
net9.0
- Diwen.Xbrl (>= 3.4.1)
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-beta2 | 37 | 2/21/2025 |
0.0.5-beta1 | 67 | 2/7/2025 |
0.0.4 | 71 | 2/4/2025 |
0.0.3 | 80 | 2/4/2025 |
0.0.2 | 101 | 2/3/2025 |
0.0.1 | 83 | 2/3/2025 |