如何使EFProf和EFProviderWrapper在实体框架

如何使EFProf和EFProviderWrapper在实体框架

本文介绍了如何使EFProf和EFProviderWrapper在实体框架连接中一起工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人找到一种方法来获得与(Entity Framework Profiler)在同一个实体框架上下文/连接中?目前,如果我尝试在使用EFProviderWrapper包装的EntitytConnection时注册EFProf Profiler,则在尝试创建新连接时,在运行时会收到以下错误:

Has anyone found a way to get Kowalski's EFProviderWrapper framework to run alongside Rhino's EFProf (Entity Framework Profiler) within the same Entity Framework context/connection? Currently if i try to register the EFProf Profiler while using an EntitytConnection wrapped with the EFProviderWrapper i get the following error at runtime when a new connection is attempted to be created:

从我可以得到的,似乎是因为EFProf最后注册,EFProviderWrapperToolkit希望是最后一个注册。我猜测这需要更改EFProviderWrapperToolkit可能创建一个新的DbConnectionWrapper类型,允许非EFProviderWrapper类型?如果任何人有多个DBConnection提供程序框架的经验,那么我的所有耳朵。

From what I can gether it appears to be because EFProf is registering last, and EFProviderWrapperToolkit expects to be the last one registered. Im guessing that this requires a change to EFProviderWrapperToolkit possibly to create a new DbConnectionWrapper type that allows for non-EFProviderWrapper types? If anyone has any experience with multiple DBConnection provider frameworks then im all ears.

推荐答案

经过3年的不活动,我确信答案是:

After 3 years of inactivity I'm pretty certain the answer is:

可能不是。

这篇关于如何使EFProf和EFProviderWrapper在实体框架连接中一起工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 05:45