public static void WithCountryAndProjectEntities(this ISeederConfigurationBuilder cfg) { cfg.ForEntity <Country>() .WithPrimaryKey(e => e.Id); cfg.ForEntity <Project>() .WithPrimaryKey(e => e.Id) .WithReference(e => e.CountryId, typeof(Country)); }
public static void WithSpecFlowConfiguration(this ISeederConfigurationBuilder configurationBuilder) { configurationBuilder.WithDataProvider(new SpecFlowDataProvider()); configurationBuilder.DisableClearBeforeSeeding(); }