Allow dapper to support Oracle

Source: Internet
Author: User

The previous project data used MSSQL and MySQL, and the orm used a lightweight dapper, which was very convenient and had better performance than ef. The key was the flexible syntax and ease of use, I feel very good when I develop several websites using this framework.

However, if Oracle is to be used in the new project, a problem occurs. The keyword "@" in dapper is not supported in the Oracle database. After checking some information, you should change "@" to ": ", because the keyword in the Oracle database is": ", it is still not supported and cannot be modified by yourself. The effect after the transformation is as follows.

In addition, there are many experts in the garden under the project framework, and I hope to give you some advice on the shortcomings.

After the webapp is expanded, the effect is as follows.

Shows the expanded commonlibrary.

The entity layer and Dal are automatically generated using code Smith.

The interaction with other systems is based on WCF and uses ESB.

This project is a company asset and does not provide source code. However, if you have other small projects, contact me if you need it.

Please be highly recommended.

 

In my spare time, I am developing a website: www.urlshou.com to facilitate the quick collection and archiving of various websites. You are welcome to use it and give more valuable comments.

 

Add the code Smith template file as required by Boyou to facilitate entity generation and Dal. Click to download.

Related Article

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.