Skip to content

Commit

Permalink
feat: Remove Tags no banco
Browse files Browse the repository at this point in the history
  • Loading branch information
renebentes committed Aug 17, 2022
1 parent 5a268e8 commit 81a6f09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Blog/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using var context = new BlogDataContext();

var tag = context.Tags.FirstOrDefault(tag => tag.Id == 2);
tag.Name = ".NET";
tag.Slug = "dotnet";

context.Update(tag);
context.Remove(tag);
context.SaveChanges();

0 comments on commit 81a6f09

Please sign in to comment.