I have simple entity:
public class Hall
{
[Key]
public int Id {get; set;}
public string Name [get; set;}
}
Then in the S
I have found that AddOrUpdate
works fine with fields that are not ID's. If this works for you: context.Halls.AddOrUpdate(h => h.Name, hall1, hall2, hall3)
You may want to use Hall names like 'French_test_abc_100', 'German_test_abc_100' etc.
That stops hard coded test data messing things up when you are testing your app.