public override void EnsureSeeded() { var csvConfig = new CsvConfiguration { SkipEmptyRecords = true, TrimFields = true, TrimHeaders = true, WillThrowOnMissingField = false }; SeederConfiguration.ResetConfiguration(csvConfig, null, typeof(SettingsContext).GetTypeInfo().Assembly); TestCars.SeedDbSetIfEmpty($"{nameof(TestCar)}"); TestModels.SeedDbSetIfEmpty($"{nameof(TestModel)}"); base.EnsureSeeded(); }
public override void EnsureSeeded() { TestCars.SeedDbSetIfEmpty($"{nameof(TestCar)}"); TestModels.SeedDbSetIfEmpty($"{nameof(TestModel)}"); base.EnsureSeeded(); }