I only need to Nhibernategenerate pure SQL, which I will send to my C functions.
Nhibernate
Custom DriverCreate a driver that calls your level C, implementing NHibernate.Driver.IDriver.
NHibernate.Driver.IDriver
The SQLite driver is a good place to run since it is the C library. Your IDriver will be almost the same as SQLiteDriver. NHibernate source code will be useful for this .
You will also need an IDbConnection wrapper for your C library. Of the SQLite wrappers, csharp-sqlite has the smallest source, this should be useful.
OdbcNHibenate ODBC, NHibernate.Driver.OdbcDriver.
NHibernate.Driver.OdbcDriver
. NHibernate SQL ; , (, ). , SQL, .
, show_sql, NHibernate SQL, . , , - NH- . log4net SQL . . , -
RunQueryAndCaptureSql(session.CreateQuery("from Stuff s where s.Thing = 'dude'"));
SQL . , , , , .
, , , NH.
Source: https://habr.com/ru/post/1734561/More articles:programmatically change column style (padding) in ASP.NET GridView - cssНекоторые браузеры кодируют файлы cookie? - encodingHow to connect to SAP with C # through the SAP NetWeaver RFC library (sapnwrfc.dll)? - c #Why are my JSON cookies sometimes distorted - json"The login.page path does not start with an error" / "character after changing the java version - javaPython c api and __add__ calls - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1734563/custom-paging-algorithm-to-calculate-pages-to-display&usg=ALkJrhgcIs7uwBcKR341sLkZzKund6F0YQHow to change the appearance of a Qt form? - coding-styleBrain fails to understand design patterns for real-time application development - designIs box-shadow affect element size? - cssAll Articles