Ejemplo n.º 1
0
        public static void AddGeneratedModels(this ModelBuilder modelBuilder)
        {
            if (modelBuilder == null)
            {
                throw new ArgumentNullException(nameof(modelBuilder));
            }

            EyeColor.AddToModel(modelBuilder);
            Person.AddToModel(modelBuilder);
        }
Ejemplo n.º 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);
 }