GithubHelp home page GithubHelp logo

pocogenerator's Introduction

POCOGenerator

Background

Often I find myself in situations where I nedd to handle data stored in existing database. To do this I need to create code classes that correspond to this data. Sometimes I use Entity Framework "Code First". Other times I use Dapper. The need is the same. It is boring (and error prone!) to manually copy columns to class properties and set correct data types. That's where this tool fits in. I just point to the database, select a table and the class is generated! In some cases a view or stored procedure is more adequate, so I added that as alternative approach. If you have the same need, feel free to just copy the solution or extend it for your needs.

Features

  • You can use any SQL Server Database.
  • The source can be a table, view or stored procedure
  • Table names are automatically detected
  • Stored procedures can return multiple resultsets
  • Resulting class will have properties with identical names and corresponding C# data types
  • Class name will be taken from table or view (for procedures you have the possibility to add custom names in a provided "AS" syntax)
  • It is easy to add/edit/remove connections to the list
  • All settings will be saved during sessions

Installation

  • Download source
  • Compile
  • All needed code is contained in one single EXE file: POCOGenerator.exe
  • Put file wherever you want and run it
  • Corresponding settings file will be generated in same directory and can be manually edited

pocogenerator's People

Contributors

jaklithn avatar

Watchers

 avatar

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.