Here\'s the table
Users
UserId
UserName
Password
EmailAddress
and the code..
public async Task UpdateDbEntryAsync(TEntity entity, params Expression>[] properties)
{
try
{
this.Context.Set().Attach(entity);
EntityEntry entry = this.Context.Entry(entity);
entry.State = EntityState.Modified;
foreach (var property in properties)
entry.Property(property).IsModified = true;
await this.Context.SaveChangesAsync();
return true;
}
catch (Exception ex)
{
throw ex;
}
}