asp.net-membership – MiniProfiler和SqlMembershipProvider

我试图在使用sqlMembershipProvider在MiniProfiler中显示时发生任何数据库查询,但我想不出任何更换sqlConnection的方法是使用ProfiledDbConnection,因为它似乎在内部完成所有操作.任何人都有任何巧妙的想法?

解决方法

您可以下载ASP.Net sql Providers here的源代码(可自由使用),阅读更多关于它的内容 here,Scott Gu在本文中发布了大量关于提供者模型的白皮书. 程序集内部是一个sqlConnectionHelper,您可以更新它以使用ProfiledDBConnection.这将为使用该类的所有提供程序提供分析,剩下的就是更改.config文件以改为使用新的提供程序.

相关文章

这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...
最近用到了CalendarExtender,结果不知道为什么发生了错位,...
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence cha...