I am using a custom IDriver to intercept the creation of SqlCommands so 
that I can wrap the IDbCommand with my own profiling IDbCommand.  This 
works great when doing selects with NHibernate.  I get all my existing 
profiling that we currently have built and the nice thing is that it will 
work with NHibernate or with some older code that is not using NHibernate. 
 However, during an insert NH goes through the batching logic and uses the 
SqlClientSqlCommandSet which casts the IDbCommand down to a SqlCommand 
causing an exception.

Has anyone been able to successfully implement their own IDbCommand and 
have it work with the SqlClientBatchingBatcher?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to