\Ali
\Ali
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
shouldve looked at that sooner
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
in the exam template for the db its set to copy whenever a change has been made
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
yeah but at that time i was hotheaded i didnt realize it was being copied over to debug
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
i guess I learned the hard way
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
couldve figured this out sooner, because the app and the database were not in sync
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
It was none of the above @jIMMACLE, I was looking in the DB browser on the file ./file.db instead of bin/Debug/file.db
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
Fixed it
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
im gonna try updating to the latest and changing the project settings to net8 and see if it works
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
ive downloaded this project from github, and my winforms is .net8 while my core project library has .net6 with EF version 7.0.1 instead of 8.0.1 with .net8
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
and it updated in real time with the changes in the program
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
i must be doing something wrong, because in my lectures the professor used it without issues
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
this is the db viewer https://sqlitebrowser.org/
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
thats the problem, I dont know where is it persistent, and the funny thing is when I add a new record through the db viewer, and rerun my program, it removes the changes (clicking on the checkbox for example, or brings back "deleted" items)
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
but we get this on an exam, I dont know how is it wrongly configured
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
so this isnt an issue around the query at all, something is wrong with the database
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
but on the database it wasnt affected
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
and its persistent through different runs
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
in the app it keeps saying that I clicked the buttona
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
and saved changes
111 replies
CC#
Created by \Ali on 1/9/2024 in #help
dbContext.Remove removes from application, but in database it remains
and i did the Entry modified state thing
111 replies