This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19303|Reply: 3

[Communication] [Actual combat] NHibernate executes the original SQL query code to return the collection

[Copy link]
Posted on 8/1/2017 2:13:58 PM | | |
In the process of using NHibernate, complex sql queries are often used, but when using HQL is more cumbersome, we often think of using the original SQL to execute. But how do you use NHibernate to execute sql? The problem is, there is also an AdoTemplate method in NHibernate that can execute sql, but here we want to introduce another method: CreateSQLQuery. Some of the following examples are from the Internet.

Query code:



Reference article: http://blog.csdn.net/faye0412/article/details/4596218




Previous:Analysis of the reasons why websites become dead sites
Next:.net/c# controls keyboard keys (case keys, etc.)
Posted on 8/1/2017 3:02:55 PM |
I haven't come recently, the user group has been downgraded, I'm going
 Landlord| Posted on 8/1/2017 3:16:35 PM |
Gu Yan Posted on 2017-8-1 15:02
I haven't come recently, the user group has been downgraded, I'm going

Mainly because I changed the points rules, welcome to come often
 Landlord| Posted on 10/9/2017 2:29:41 PM |
Execute complex SQL statements and return collections



Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com