I'm having some problems with Entity Framework in VS2010
The problem I am getting is very well described here ...
http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/cacf6a76-09a8-4c90-9502-d8b87c2f6bea
This basically happens when the foreign key points to the primary key of another table ... but if I take StoreGeneratedPatternboth Identity, then he will try to insert a value in the identification field
StoreGeneratedPattern
Identity
EDIT
So, it looks like EF4 cannot handle the zero relation when the primary key is set to StoreGeneratedPattern="Identity". If I create an FK pointing to this primary key and make it null (effectively creating a connection 0...M), then it throws this compilation error.
StoreGeneratedPattern="Identity"
0...M
Removing StoreGeneratedPattern="Identity"fixes the problem but causes problems. It works if the foreign key is set to invalid.
So, I talked to someone at DevWeek this week, and we managed to find the answer ...
, , fk , . fk , , ( ). EF FK - , , ... . !
....
, .
Source: https://habr.com/ru/post/1740505/More articles:Accessing the file in the installation directory in vb.net code - installationEffects of changing a node in a binary tree - algorithmgroovy: how to escape "(" regex etc. in textarea? - regexhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1740503/ef4-01-relationship-leads-to-error-2016-condition-cannot-be-specified&usg=ALkJrhjfIXIhrhv6RK8_viwCQynbMBzvCwHow can I make a ListView touch in its full width to click on an item? - javaReading PowerPoint Animation Effects Using VBA - vbaDrools integration with JBossESB - jbossHow to carry safely - securityhow to build a long string - javascriptHow do you compile a resource into a binary file? - iphoneAll Articles