c# - nhibernate interceptor configuration is right or wrong -


i used nhibernate 2.1.2, fluentnhibernate 1.1, , sqlite configured in memory (for unit testing purposes).

the purpose of interceptor make proxy object returned create criteria. think registered interceptor configuration correctly, create criteria returns naked object instead of proxied one. tried put breakpoint on interceptor instantiate method breakpoint not hit.

so question is, how can know whether interceptor setup correctly or not? debug using logging?

i'm having problem using configuration in visual studio unit testing.

using (isession session = nhibernateconfig.sessionopen())              {                 using (var trans = session.begintransaction())                 {  var data = (from c in session.query<employeedetails>()                         (c.fname == "abc")                         select c).tolist(); //linq queries                      (int = 0; <= data.count; i++)                     {                         session.delete(data[i]);                     }                                         }             } 

 (int = 0; < data.count; i++)                     {                         session.delete(data[i]);                     }    , commit transaction @ end of code     

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -