StraMa87

Insert method C#

Jan 27th, 2021 (edited)
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | None | 0 0
  1. public virtual async Task<object> Update(TEntityDb entity)
  2. {
  3.      _context.Entry(entity).State = EntityState.Modified;
  4.      _dbSet.Update(entity);
  5.      return await _context.SaveChangesAsync();
  6. }
Add Comment
Please, Sign In to add comment