1.2.1 • Published 9 years ago
generator-jadn v1.2.1
JSONAPI .Net Core Generators
Development
git clone https://github.com/Research-Institute/json-api-dotnet-core-generators
cd json-api-dotnet-core-generators
npm linkInstallation
See the yeoman docs
OR
npm install -g generator-jadnUsage
All commands should be run from the project root
Creating a model and controller:
yo jadn:entity MyEntity- Specifying the
idtype of the model (defaults to int):
yo jadn:entity MyEntity:Guid- Adding attributes to the model:
yo jadn:entity MyEntity name:string displayName:string- Adding relationships:
yo jadn:entity Person hasmany:todoItems
yo jadn:entity TodoItem hasone:owner:person