Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit f08a501 May 30, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Examples Delete package-lock.json May 30, 2019
.gitignore Reflection via Attributes example added Mar 9, 2019
LICENSE Initial commit Apr 23, 2018
README.md Update README.md Feb 16, 2019

README.md

KY.Generator

We are not yet done, see the dev-branch

Setup for Visual Studio

Install nuget package KY.Generator.CLI
All dependencies are automatically installed. We support .net Framework 4.6 or .net Core 2.0
For lower framework version please create an issue and we will try to support your version

Add an .json or .xml configuration file (go to Wiki)
and add an Pre-build event

.net Core

"%USERPROFILE%\.nuget\packages\ky.generator.cli\0.8.0\tools\KY.Generator.exe" "$(ProjectDir)generator.json" "$(ProjectDir)ClientApp\src\app"

.net Framework

"$(SolutionDir)packages\ky.generator.cli\0.8.0\tools\KY.Generator.exe" "$(ProjectDir)generator.json" "$(ProjectDir)ClientApp\src\app"
"<path-to-KY.Generator.exe>" "<path-to-configuration-file>" "<output-path>"

Setup for Console/Powershell

Install nuget package KY.Generator.CLI.Standalone

Run with configuration file

Use an .json or .xml configuration file (see here)
and run in cmd:

KY.Generator configuration.json Output
KY.Generator <path-to-configuration-file> <output-path>

Run a command

Run a command (go to Wiki)

KY.Generator.exe reflection -assembly=KY.Generator.Examples.Reflection.dll -name=ExampleType -namespace=KY.Generator.Examples.Reflection -relativePath=Output -language=TypeScript

Languages

The generator has the possibility to support different languages. All commands and actions writes their output in a meta language, that can be converted in each language you want.

C#

Language name: Csharp

TypeScript

Language name: TypeScript

Reflection

Generate TypeScript classes from any .net type including all dependencies.
Optionally convert all properties to public fields or vice versa.

How to configure (go to Wiki)
Commands are available (go to Wiki)
Examples are found under /Examples/Reflection

Json

Create a class from a json file or request.
Optionally append a reader method or class.

How to configure (go to Wiki)
Examples are found under /Examples/Json

Xml

Create a class from a xml file or request.
Optionally append a reader method or class. Currently this feature is not available

oData

Creates a client for an oData service. Has the possibility to connect to an oData service, reads the $metadata and outputs models for all described types and a datacontex containing all datasets.
Currently this feature is not fully available

TSQL

Generate models from MS SQL-Server. Generate a Entity Framework compatible data context. Possibility to generate oData compatible ASP.net controllers.
Currently this feature is not fully available

ASP.net / ASP.net Core

Generate Angular client from an ASP.net controller.

Watchdog

Suspend generation until a website is available or a file or directory exists

Command is available (go to Wiki)

You can’t perform that action at this time.