c# - Where does the 'Name' property in a DBML come from? -


I am using Linq-to-Sql and objects created with database connection provided in my DBM .

If you click on an association line between two tables and look at the properties, you will get:

  • Cardinality
  • Hair
  • Unique

    My question is, where does the "Name" attribute get from Linq-to-Sql? Where is the real database correlation?

    I want to ask this because if this table becomes the parent of many children, then Linq-to-Sql only names these properties, " ParentName ", SomeParentName2 "," some ParentName3 "etc. So you have to go to DBML and change these names manually, every time you update this table

    Any help you can provide will be appreciated

    Part 2 of my question may be that you How do you manage the situation?

    For the name: This child / guardian takes some internal wards Do not ask me.

    As for Part 2: If you make some updates every time you have to do the material again, then I believe that Switching to the unit framework is very similar, but you can just hit "update" and your modifications are being kept. Is.

Comments