2012-11-14 28 views
1

我从nuget安装了this plugin如何使用petapoco一瞥?

我启用通过glimpse.axd文件窥,但是当我去petapoco标签我看到这则消息

"No database requests or database logging not switched on (Compilation debug='true' or ForceLogging='true' on PetaPoco.DatabaseWithLogging)" 

我在哪里设置这个记录?

回答

2

您需要像平常一样创建新的DatabaseWithProfiling()而不是Database()。从NuGet中取出Model文件夹中的代码后,请检出它们。