Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I'm trying to use the dbcontext.database.log feature of the dbcontext in entity framework in a WPF application using vb.net but I can't get it to work!

What do I have to do?

What I have tried:

dbcontext.database.log = console.write <- does not work because it's a WPF application, not a console application

debug.write(dbcontext.database.log) <- does not work

dbcontext.Database.Log = message => Trace.WriteLine(message); <- does not work! it's C# and i'm using vb!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900