Entity Framework Core Logging For Sql Statements RRS feed

  • Question

  • Hi All,

    In my application sql statements logging is done as per inbuilt feature of EF core,i want to control that inbuilt logging and show the logs within an another file.

    I tried some solutions like crazy reflection code by Rian Williams but it won't work for me ,i am using EF core 2.1.4 here i am unable to handle _context object in my solution and .ToSQl method show error in my solution.

    If anybody knows how to control sql statement logging and then log the statements in a separate file please answer the same

    Wednesday, October 24, 2018 11:52 AM

All replies