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" />
<PackageReference Include="SkyHigh.PocoEntity.Generator" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=SkyHigh.PocoEntity.Generator&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Add a reference to the package in your project:
<PackageReference Include="SkyHigh.PocoEntity.Generator" Version="1.0.0" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
Create an
entitySchema.json
file in your project root with your entity definitions.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.
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.7.0)
- Scriban (>= 6.0.0)
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 |