.net - How does the Entity Framework tell whether a multiplicity of "one" or "zero or one" should be used on a relationship? -


I'm making an edmx file as part of our code generation process and I would like to know that the designer How does the "update model from databases" determine when you use "1" or "0..1" for the relationship? Any insights on this? Thanks

Edit:

OK, I think it uses "0..1" when "too many" Is there a nonsensical foreign key and "1" can not confirm if this is not a tap?

Yes, setting "0..1" or "1" for parents The role depends on the fact whether the column is faucet or not
Do not forget that if the connection is made in parts of the primary key column from both tables (1 to 1 union), then the cardinality 1 (parent) 1. (1) (hair).
If you are developing a new ADMX generation device, then we recommend that you experiment and analyze as much as possible. We have developed a design time tool for creating and editing unit frameworks and LINQ with SQL code and code generation for Oracle, MySQL, PostGreySQL, SQL Server and SQL for our customers. There was no problem with SQL Server because the unit framework was initially developed, but other databases revealed some difficulties. There was even a belief that some characteristics of the Oracle database, for example, were not noticed at all.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -