如何使用實體框架進行更新?我傳入具有更新值的對象,但沒有看到Update方法。如何通過傳遞對象使用實體框架更新
public void UpdateRecipient(Domain.Entities.RecipientEntity recipient)
{
using (EfDbContext context = CreateEfDbContext(recipient.ApplicationId.ToString()))
{
context.Recipients. //?? I don't see an update method
context.SaveChanges();
}
}