One of the dapper series: Getting Started with dapper

Source: Internet
Author: User

Dapper Introduction Introduction:

do not know how the blog to write to typesetting, check a lot of related blogs, but also according to their own project summary, just recently set up a micro-service framework, the way to build a micro-service framework used by the knowledge of the blog comb, in order to review,  Just try to write about your understanding of DAPEPR in the MicroServices framework and the application of the project. Dapper is just a code file, fully open source, you can anywhere in the project to achieve data-to-object ORM operations (of course, referring to dapper files first), small volume fast. The use of the benefits of adding or removing to change faster, do not have to write their own SQL, because this is a repetitive technical content of the work, there are a large number of databases in the program to read the data and then create model, and for the Model field assignment, which is very easy, personally think Dapper can be regarded as helpsql, It's even a little bit higher than the helpersql performance. If you like native SQL, then there is the simple like ORM, then you must love dapper and look at him.

Advantages of Dapper:
 1  , Dapper is a lightweight ORM class, Code is a SQLMapper.cs file, compiled generally around 40k dll;  2   , dapper fast, why say fast? Because the DAPEPR speed is close to IDataReader, the data for the fetch list exceeds the DataTable;  3  , what database does dapper support? Support Mysql,sqllite,sqlserver,oracle, such as a series of databases, (note: I personally in the demo, is the use of Mysql,sqlserver, the company and a computer installed data is not the same, have been tested);  4  , Dapper R supports multi-table parallel objects, support one-to-many, many-to-many relationships, and no intrusion, want to use;  Span style= "COLOR: #800080" >5   Dapper principle is to quickly get and produce objects by emit reflection Idatereader queue ; This is one of the reasons for high performance;  6 , dapper syntax is simple, quick start. 
If the interview, let you say dapper benefits, why use dapper, above answer, leverage ...
Interviewer: I am, the lad knows a lot ...

In the performance of more than 500 poco serialization, we found that Dapper is second, of course, the first person can not surpass, the more the bottom of course long faster, but also the more trouble.

Dapper Code Application Introduction:




    • Bo Master is the use of reading, reference, quoting, copying, copying and pasting a variety of ways to make their own pure 24k article, please forgive bloggers become a shameless document Porter!
    • Younger brother just entered the blog writing, the text if there is not, welcome to use the board to straighten, hope to help you.

One of the dapper series: Getting Started with dapper

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.