コード例 #1
0
        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));
        }
コード例 #2
0
 public static void WithSpecFlowConfiguration(this ISeederConfigurationBuilder configurationBuilder)
 {
     configurationBuilder.WithDataProvider(new SpecFlowDataProvider());
     configurationBuilder.DisableClearBeforeSeeding();
 }