Coder Social home page Coder Social logo

15110088 / dappercodegenerator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spronkets/dappercodegenerator

0.0 0.0 0.0 2.67 MB

Simple C# Code Generator to create Database Models and Dapper CRUD

License: MIT License

JavaScript 2.25% C# 70.84% CSS 1.30% HTML 25.61%

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.

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
    • If there are tables and it says there aren't try refreshing (state is preserved, but the tables should then populate)

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 (Create, Retrieve/Get, Update, and Delete) methods for interacting with the Database using the data models generated in this tool and Dapper - a simple, lightweight and powerfull ORM (Object Relational Mapper). See more at https://github.com/StackExchange/Dapper.

You can also try the below alternatives...

Other Projects:

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.