Giter Club home page Giter Club logo

dappercodegenerator's Introduction

Dapper Code Generator

Simple C# Code Generator to create Database Models and Dapper CRUD to reduce manual code entry and repetitive work.

This is currently being worked on. Use with knowledge that it may be unstable and/or may change. The technologies and patterns used are mostly for my own education and shouldn't necessarily be followed in enterprise software.

Instructions

  1. Clone or download the repository
  2. Open the solution file (DapperCodeGenerator.sln) in Visual Studio 2017
  3. Make sure the Web project is set as the startup project
  4. Start/run with IIS
    • I run it with IIS Express from Visual Studio 2017, you can run it however you want
  5. Navigate to the site
  6. Select the Connection Type
    • If you want further support for an existing or any other DB types feel free to make a PR and/or submit a ticket, just know I won't prioritize it
  7. Enter a valid Connection String for the selected Connection Type
  8. Press the "Connect" button
    • If you get messages about there not being any databases, confirm your Connection Type and Connection String
  9. Select any database you wish to generate code for
  10. A table should be populated with a list of tables for the database you selected, click the "Data Model" or "Dapper" buttons to the right to generate code

image

Data Models

This is to generate C# objects that directly reflect the database tables for use with Dapper (or anything really).

image

Dapper

This is to generate the Dapper CRUD methods for interacting with the Database using Data Models generated and Dapper.

This isn't complete yet. Try the below alternatives for now or write your own...

Other Projects:

dappercodegenerator's People

Contributors

spronkets 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.