EntityState.Added can be set in two fully equivalent ways:
By setting the state of its entry in the context:
context.Entry(entity).State = EntityState.Added;
By adding it to a DbSet of the context:
context.Entities.Add(entity);
When calling SaveChanges, the entity will be inse...