Talrace.Core.ModelGenerator 6.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package Talrace.Core.ModelGenerator --version 6.0.6
NuGet\Install-Package Talrace.Core.ModelGenerator -Version 6.0.6
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="Talrace.Core.ModelGenerator" Version="6.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Talrace.Core.ModelGenerator --version 6.0.6
#r "nuget: Talrace.Core.ModelGenerator, 6.0.6"
#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 Talrace.Core.ModelGenerator as a Cake Addin
#addin nuget:?package=Talrace.Core.ModelGenerator&version=6.0.6

// Install Talrace.Core.ModelGenerator as a Cake Tool
#tool nuget:?package=Talrace.Core.ModelGenerator&version=6.0.6

About

This package is used to generate typescript classes and interfaces based on .NET classes. Typescript classes are strongly typed and can be used in any typescript application. Typescript interfaces can ONLY be used in Angular applications (version 14 or higher) for typed forms (more info here).

Available api

Generator - class is used to remove and create generated typescript models and form interfaces from DTO models. FileHandler - static class is used to deserialize the JSON data into the specified object. GeneratorOptions - class defines data contract fields.

ModelGenerator configuration

To use the ModelGenerator package, you need to add the dependencies used in DTO models. Build a project with models contain and all of its dependencies for find *.Dtos.dll files. configuration.json - used for deserialization into the GeneratorOptions model.

{
    "Source": "<BuildModelsFilePath>",
    "TsDestination": "<DestinationModelPath>",
    "Namespace": "<ModelsNamespace>",
    "Files": [ "<BuildFiles>" ],
    "Models": "<ModelsPath>",
    "SkipDayjs": <SkipDayjs>
}

Generate typescript models and form interfaces.

static void Main() {
    var options = FileHandler.ReadJson<GeneratorOptions>("<ConfigurationJsonPath>");
    var generator = new Generator();
    generator.Process(options);
}

Run the project through the console by typing dotnet run

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
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
8.0.0 801 11/30/2023
6.0.19 449 10/9/2023
6.0.18 146 10/5/2023
6.0.17 357 5/23/2023
6.0.16 125 5/23/2023
6.0.15 991 4/28/2023
6.0.14 208 4/18/2023
6.0.13 294 3/27/2023
6.0.12 203 3/24/2023
6.0.11 232 3/14/2023
6.0.10 572 3/10/2023
6.0.9 289 3/9/2023
6.0.8 235 3/1/2023
6.0.7 1,119 2/22/2023
6.0.6 828 2/17/2023
6.0.5 234 2/9/2023
6.0.4 488 9/30/2022
6.0.3 411 9/8/2022
6.0.2 549 7/22/2022
6.0.1 3,319 5/5/2022
6.0.0 411 4/28/2022
3.1.20 2,105 12/15/2021
3.1.19 315 9/24/2021
3.1.13 2,231 4/9/2021
3.1.12 726 3/2/2021
3.1.11 584 1/4/2021
3.1.10 477 12/17/2020
3.1.0 3,373 4/13/2020