I know how to organize flexible API configurations into a separate class on EF6, but how is this achieved with EF7?
Here is an example of how to do this with EF6:
ModelConfigurations.cs
public class ModelConfigurations : EntityTypeConfiguration<Blog> { ToTable("tbl_Blog"); HasKey(c => c.Id);
and call it from OnModelCreating ()
protected override void OnModelCreating(DbModelbuilder modelBuilder) { modelBuilder.Configurations.Add(new ModelConfigurations());
In EF7, I can not solve EntityTypeConfiguration? What is the correct way to implement free API calls from a separate class?
source share