Geeks With Blogs

Anirudha gupta

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

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.

Happy Coding Smile

Posted on Friday, September 8, 2017 7:24 PM | Back to top

Comments on this post: How to use dapper for MySQL in C#

# re: How to use dapper for MySQL in C#
Requesting Gravatar...
Great! You have described very well.

Chirag | Bootstrap themes designer
Left by Chirag on Oct 24, 2017 2:16 PM

# re: How to use dapper for MySQL in C#
Requesting Gravatar...
impressive article a lot of students getting a ha great idea for about this post
Left by marrymax on Dec 06, 2017 4:27 PM

Your comment:
 (will show your gravatar)

Copyright © Anirudha | Powered by: