I programmatically create an edmx file as part of the code generation process, and I would like to know how the designer decides to use “1” or “0..1” for relationships when you “update the model from the database”. Any understanding of this? Thanks
Edit:
Well, I think it uses "0..1" when the "many" side is a null foreign key and "1" if it is not NULL. Can anyone confirm this?
, "0..1" "1" , "" ., ( 1 1 ), 1 () 0..1 (Child).edmx, . Entity Framework LINQ to SQL Oracle, MySQL, PostgreSQL, SQL Server SQLite . SQL Server , Entity Framework, . , Oracle, , .
. EF , .
Source: https://habr.com/ru/post/1711193/More articles:Does iPhone OS restore user memory on exit? - memory-leaksWhat is a good development environment for writing Oracle SQL? - sqlBest practice for handling a large WCF service - wcfHow can I call the JavaScript function on the page viewed by the WebBrowser control from the application that the WebBrowser control is on? - javascriptDisable Visual Studio Web Server Directory Browsing - cassiniCan I programmatically add a link to a gridview? - c #new on objective-c - new-operatorTibco SOAB request over https - SSL certificate verification issue - sslHow to reset my program in C # (Windows mobile)? - c #Serialize an image in XAML with XamlWriter - serializationAll Articles