Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- я хочу с помощью ID удалить информацию которая находится в бд, но почему то не получаются
- public void Detele()
- {
- using(VideoGamesDatabaseContext context = new VideoGamesDatabaseContext())
- {
- VideoGame d = context.VideoGames.Find();
- if(d != null)
- {
- context.VideoGames.Remove(d);
- context.SaveChanges();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement