Advertisement
Iv555

Untitled

Jul 5th, 2022
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1.  public static void IncreasePrices(BookShopContext context)
  2.         {
  3.            
  4.             //Not working in Judge, working locally
  5.  
  6.             context.Books.Where(x => x.ReleaseDate.Value.Year < 2010)
  7.                  .Update(x => new Book { Price = x.Price + 5 });
  8.  
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement