GithubHelp home page GithubHelp logo

bluepoco's Introduction

BluePOCO

Generate POCOs from Blueprint syntax

Usage:

Get the APITransformer package from https://www.nuget.org/packages/BlueprintApiTransformer/ (or clone this project and compile your own!)

Add the transformer file to your project, edit as appropriate, use "Debug T4 Template" to generate (for some reason, standard running seems to yield a newtonsoft JSON error - I haven't gotten around to figuring out why, it doesn't happen in debug) - and enjoy your newly usable POCOs!

This project is created to complement a RestSharper extension to provide domain oriented design for fetching restul data.

Github: https://github.com/Grinderofl/Restcoration NuGet: https://www.nuget.org/packages/Restcoration/

Issues: T4 template generator loves locking assemblies, which means that after generating the POCOs, the files used by it remain locked and copying build files will fail. I've tried getting around it, but it's a whole lot of hustle which is just not worth it. So, I've gone for brute force solution which works quite well. Simply add this to your pre-build script:

taskkill /f /fi "pid gt 0" /im T4VsHostProcess.exe

This will kill the T4 transformer and release the assemblies.

Credits

antiufo / Xamasoft for JSON C# Class Generator

http://jsonclassgenerator.codeplex.com/ http://www.xamasoft.com/json-class-generator/

bluepoco's People

Contributors

grinderofl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

neeraj1032

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.