News


Few days ago I look for a solution so  I can  just save my time writing CRUD. So I found a solution. It’s called Dapper.

For creating c# class from the database you can use this code

https://gist.github.com/anirugu/9fb82ce773c45578f42f7a6d899f3221

later add Dapper into your project and add Dapper.Contrib

now you don’t need to write a open Datareader and write some reading writing code again and again.

Dapper.Contrib give you some cool functionality like Insert and Update. You still need to write your SQL queries but it’s going to be good and easier to maintain the code. Last year I was working on a c# project and project become full mess of these code. With one line of  SELECT , INSERT  OR UPDATE code and 100 line of code later to just read those things from DataReader.

Dapper can save a lot of your time doing those same repeated thing and do it pretty well. 

https://github.com/StackExchange/Dapper

https://stackoverflow.com/questions/tagged/dapper

Happy Coding Smile


Comments

Gravatar # re: How to use dapper for MySQL in C#
Posted by Chirag on 10/24/2017 2:16 PM
Great! You have described very well.

Thanks,
Chirag | Bootstrap themes designer
Gravatar # re: How to use dapper for MySQL in C#
Posted by marrymax on 12/6/2017 4:27 PM
impressive article a lot of students getting a ha great idea for about this post
Post A Comment
Title:
Name:
Email:
Comment:
Verification: