public void AddModel <TModelConfig>() where TModelConfig : IModelConfig, new() { var config = new TModelConfig(); DbContextBuilder.Config(config.BuildModel); DbContextBuilder.Seed(config.BuildSeedData); }