surf68
surf68
CC#
Created by ardi on 11/17/2024 in #help
Database adding letters to my output why?
and you've confirmed that the carriage return and line feed are not in the database?
8 replies
CC#
Created by exceptive on 11/14/2024 in #help
Looking for a logging solution
Alright so that's pure ADO.NET. Unfortunately, there's no logging mechanism that you can hook into so you're going to have to add the logging yourself. Given this is for a school assignment I assume the application isn't particularly large? If so, I'd suggest tackling things in the following order. - Pick one method and get it logging its query to a hard-coded JSON file - Work on adding configuration for where to write that JSON file - Expand this out to all of the other places you're running SQL I'm not sure if you're allowed to use external packages or not but if you are you could look into using Serilog which is a very common logging package. This'll give you a pretty basic solution to the problem but it isn't particularly scalable. Taking it further you could look into adapters around a connection but only you can say whether or not that is what your class is looking for.
9 replies
CC#
Created by exceptive on 11/14/2024 in #help
Looking for a logging solution
I'm more asking what your code looks like to execute SQL.
9 replies
CC#
Created by exceptive on 11/14/2024 in #help
Looking for a logging solution
How are you running your SQL? EF? ADO.NET?
9 replies