I've recently open-sourced a tool I use to do a lot of the grunt-work on websites I build, and would be interested to get any feedback.
You basically create a project, then create entities, then define fields for those entities, and then set up relationships between the entities.
The system then generates a whole bunch of files for you: a Model for Entity Framework to use, a WebApi Controller, a Search webpage with the AngularJS controller to search the records in that entity, an Edit webpage and AngularJS controller to handle the
create/edit/delete, and a bunch more files like the ngResource, the ngRouter code, etc.
Thanks for sharing this tool, it might help others reduce much of time to create entities.
Best regards,
Dillion
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
1 Points
15 Posts
Interested in a code-generation tool for WebApi, Entity Framework and AngularJS?
Apr 05, 2017 02:29 PM|sean_walsh|LINK
Hi everyone.
I've recently open-sourced a tool I use to do a lot of the grunt-work on websites I build, and would be interested to get any feedback.
You basically create a project, then create entities, then define fields for those entities, and then set up relationships between the entities.
The system then generates a whole bunch of files for you: a Model for Entity Framework to use, a WebApi Controller, a Search webpage with the AngularJS controller to search the records in that entity, an Edit webpage and AngularJS controller to handle the create/edit/delete, and a bunch more files like the ngResource, the ngRouter code, etc.
I've uploaded it to GitHub here: https://github.com/capesean/codegenerator
And there's a hosted (demo) version here: http://codegenerator.sitedemo.co.za/
It requires a login - but for the demo you can use email demo@capesean.co.za and password L3tM3!n
It is still a little rough around the edges, but if it gets any interest I'll put more effort in. Feedback welcomed!
Also - any suggestions where I could publicize this?
Here's a blog post that I've just created, explaining it in more detail.
Below is a screenshot of the system generating a WebApi controller for the demo project's Customer entity:
All-Star
45489 Points
7008 Posts
Microsoft
Re: Interested in a code-generation tool for WebApi, Entity Framework and AngularJS?
Apr 06, 2017 03:16 AM|Zhi Lv - MSFT|LINK
Hi sean_walsh,
Thanks for sharing this tool, it might help others reduce much of time to create entities.
Best regards,
Dillion