I use Entity Framework.6.1.3. I want Entity Framework to not create foreign key in SQL Server database. What configuration can be set?
I tried this but it only disables foreign key, it still creates it:
modelBuilder.Conventions.Remove<OneToManyCascadeDeleteConvention>();
Is there a way to tell Entity Framework not to create the foreign keys it in database?
我建议您看看EntityForeinkey对于您的问题,希望对您有帮助
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.