Here are the examples of the csharp api class System.Data.Common.DbProviderFactory.WrapProviderFactory() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
View licensepublic static DbProviderFactory TryGetProfiledProviderFactory(this DbConnection connection) { var factory = connection.TryGetProviderFactory(); if (factory != null) { if (!(factory is GlimpseDbProviderFactory)) { factory = factory.WrapProviderFactory(); } } else { throw new NotSupportedException(string.Format(Resources.DbFactoryNotFoundInDbConnection, connection.GetType().FullName)); } return factory; }