.net - How to map foreign key attribute tables to a business entity -


I have a table in the database that I am mapped to a main unit class. There are several columns in the table that hold foreign key values ​​in other specialty tables.

How do I map them to business categories? Can I create a new class for each specialty table and keep the primary class as assets? If the relation between the main table and the attribute table 1: 1 is concerned, then one or only one; I have the attribute table (tables) in the attribute table for the records given in the main table.

If the connection between the main table and the attribute table is 1: n, I would have a different class (perhaps nested in the main unit category) for each attribute table next to the main unit square then each attribute table Will be a property, which will be list & lt; AttributeType & gt; (since there may be several records in the attribute table for the given record in the main table)


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -