SkyHigh.PocoEntity.Generator 1.0.0

dotnet add package SkyHigh.PocoEntity.Generator --version 1.0.0
                    
NuGet\Install-Package SkyHigh.PocoEntity.Generator -Version 1.0.0
                    
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="SkyHigh.PocoEntity.Generator" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SkyHigh.PocoEntity.Generator" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SkyHigh.PocoEntity.Generator" />
                    
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 SkyHigh.PocoEntity.Generator --version 1.0.0
                    
#r "nuget: SkyHigh.PocoEntity.Generator, 1.0.0"
                    
#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=SkyHigh.PocoEntity.Generator&version=1.0.0
                    
Install SkyHigh.PocoEntity.Generator as a Cake Addin
#tool nuget:?package=SkyHigh.PocoEntity.Generator&version=1.0.0
                    
Install SkyHigh.PocoEntity.Generator as a Cake Tool

SkyHigh.PocoEntity.Generator

A .NET source generator that creates POCO entity classes based on JSON schema definitions.

Features

  • Generates entity classes from JSON schema
  • Creates interfaces for entity contracts
  • Supports enum generation with different base types
  • Handles relationships between entities
  • Supports inheritance and interfaces

Installation

dotnet add package SkyHigh.PocoEntity.Generator

Usage

  1. Add a reference to the package in your project:
<PackageReference Include="SkyHigh.PocoEntity.Generator" Version="1.0.0" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
  1. Create an entitySchema.json file in your project root with your entity definitions.

  2. The source generator will automatically create class files for your entities at compile time.

Schema Example

{
  "name": "YourProject",
  "version": "1.0.0",
  "baseNamespace": "YourNamespace",
  "entities": [
    {
      "name": "User",
      "namespace": ".Entities",
      "properties": [
        {
          "name": "Id",
          "type": "Guid",
          "isRequired": true
        },
        {
          "name": "Name",
          "type": "string",
          "maxLength": 100
        }
      ]
    }
  ]
}

License

MIT

There are no supported framework assets in this 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
1.0.0 121 3/16/2025