Thanks Gunnar! That turned out to be a much easier solution.

On Friday, August 26, 2016 at 4:12:39 PM UTC+2, Gunnar Liljas wrote:
>
> I think subclassing the driver you're already using (Sql2008ClientDriver?) 
> is a much better solution.
>
> /G 
>
> 2016-08-26 9:54 GMT+02:00 Fredrik Johansson <[email protected] 
> <javascript:>>:
>
>> I was inspired by this solution to be able to add custom telemetry on my 
>> SQL queries.
>>
>> https://carlos.mendible.com/2016/05/06/nhinsights-an-oraclemanageddataclientdriver-for-nhibernate-and-application-insights
>>
>> Without much prior knowledge of NHibernate I am struggling with the 
>> argument list of the ReflectionBasedDrivers constructor. It accepts the 
>> following strings:
>> •providerInvariantName
>> •driverAssemblyName
>> •connectionTypeName
>> •commandTypeName
>>
>> The only two I feel certain about are the driver assembly and the command 
>> type. "NHibernate.Driver.SqlClientDriver" and 
>> "NHInsights.Infrastructure.InsightsDbCommand" respectively.
>>
>> How do I find the names of the providerInvariant and connectionType? I 
>> use a MS SQL Server 2012 and the MsSql2005Dialect.
>>
>> Any help would be much appreciated.
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/nhusers.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to