How to log SQL generated by EF using log4net

.net c# entity-framework entity-framework-6 log4net

Question

I'm using EF6 in my web project, and I'd like to log the generated SQL for debugging purposes.

I'm searching for a solution to combine both together because I also use log4net to manage logs.

How exactly do you go about doing this?

1
3
8/8/2018 7:03:38 AM

Accepted Answer

ZZZ_tmp
6
8/13/2015 9:33:15 AM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow