You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally posted this issue in the Npgsql repo but I have also reproduced using the Sql Server provider for EF7. After upgrading to RC1 final, I've found that after doing my initial migration which creates OK, all other migrations created try to drop all my current foreign keys and create new ones as cascade on delete. I've tried forcing cascade restrict within my DbContext but that doesn't seem to make a difference. I can run the migration without issue, but then if I create a new migration, the same code is generated trying to drop foreign keys and I can't figure out what's causing it.
After creating these migrations, the ApplicationDbContextModelSnapshot does not recognise any changes, which I'm guessing may have something to do with it?
I can simply remove the code that's generated which is fine, but I'd like to find out whether this is an issue I've caused by wrongly setting up my relationships, or whether it's a bug. I haven't seen any other reports of this kind of problem yet?
The original issue raised on Npgsql's repo was 880.
Thanks,
Ian.
The text was updated successfully, but these errors were encountered:
Hey,
I originally posted this issue in the Npgsql repo but I have also reproduced using the Sql Server provider for EF7. After upgrading to RC1 final, I've found that after doing my initial migration which creates OK, all other migrations created try to drop all my current foreign keys and create new ones as cascade on delete. I've tried forcing cascade restrict within my DbContext but that doesn't seem to make a difference. I can run the migration without issue, but then if I create a new migration, the same code is generated trying to drop foreign keys and I can't figure out what's causing it.
After creating these migrations, the ApplicationDbContextModelSnapshot does not recognise any changes, which I'm guessing may have something to do with it?
I can simply remove the code that's generated which is fine, but I'd like to find out whether this is an issue I've caused by wrongly setting up my relationships, or whether it's a bug. I haven't seen any other reports of this kind of problem yet?
The original issue raised on Npgsql's repo was 880.
Thanks,
Ian.
The text was updated successfully, but these errors were encountered: