I need that Nhibernate only generate pure SQL, which I will send to my C functions.
I need that Nhibernate only generate pure SQL, which I will send to my
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Custom Driver
Build a driver that calls your C layer by implementing
NHibernate.Driver.IDriver.The SQLite driver is a good place to start as that is a C library. Your IDriver will be almost the same as SQLiteDriver. The NHibernate source code will be useful for this.
You will also need a IDbConnection wrapper for your C library. Of the SQLite wrappers, csharp-sqlite has the smallest source, it should be helpful.
Odbc
NHibenate already has a driver for ODBC connections,
NHibernate.Driver.OdbcDriver.