如果我得到id,我会在contact_seeder表中创建一条记录,如果它不存在。为了检查它是否已经存在,我查询contact_seeder表,如下所示。Select id from contact_seeder where contact_id = 12 and seeder_id = 2;
对于1个seeder_id,一个联系人只能有1个'contact_seeder这就是为什么我要针对一些contact_id和seeder_id检查'conta
我计划托管我的asp.net mvc应用程序。我希望我的客户能够从控制器的方法中运行种子方法。 public class Configuration : DbMigrationsConfiguration<CUDbContext> public Configuration() AutomaticMigrationsEnabled = true; }