public static void AddGeneratedModels(this ModelBuilder modelBuilder)
        {
            if (modelBuilder == null)
            {
                throw new ArgumentNullException(nameof(modelBuilder));
            }

            EyeColor.AddToModel(modelBuilder);
            Person.AddToModel(modelBuilder);
        }
Example #2
0
 /// <summary>
 /// Provides the <see cref="ModelBuilder"/> configuration.
 /// </summary>
 /// <param name="modelBuilder">The <see cref="ModelBuilder"/>.</param>
 public static void Configure(ModelBuilder modelBuilder)
 {
     EyeColor.AddToModel(modelBuilder);
     Person.AddToModel(modelBuilder);
 }