GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - spronkets/DapperCodeGenerator: Simple C# Code Generator to create Database Models and Dapper CRUD

BranchesTags
Open more actions menu

Latest commit

 

History

54 Commits
54 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
DapperCodeGenerator.Core
DapperCodeGenerator.Core
 
 
DapperCodeGenerator.Web
DapperCodeGenerator.Web
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
DapperCodeGenerator.sln
DapperCodeGenerator.sln
 
 
DapperCodeGenerator.slnx
DapperCodeGenerator.slnx
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

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
  3. Make sure the Web project is set as the startup project
  4. Start/run with Visual Studio
  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...

  • https://github.com/MoonStorm/Dapper.FastCRUD
  • https://github.com/ericdc1/Dapper.SimpleCRUD

Other Projects:

  • Code Snippets (gists) - https://gist.github.com/kcrossman

About

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

Topics

blazorbootstrapbootstrap5code-generationcode-generatorcsharp13dapperdapper-cruddatabasedatabase-modelsdotnet9fontawesomefontawesome7mysqlnpgsqloracleplsqlpostgressqlservertsql

Resources

Readme
MIT license
Activity

Stars

51 stars

Watchers

6 watching

Forks

29 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.