I would like to know if it is possible to cover a specific scenario with OpenAccess as I was unable to map it appropiately with Entity Framework:
I have a couple tables that store unique Identities of different types like Computers, Roles, etc. Each of that tables has an "ID" field that holds an incrementing Integer as Primary Key plus some additional columns for some properties that are specific to each type like Name, Description, etc.
-----------
Example
Table A
- ID (Int) - PK
- Description
- SerialNumber
Table B
- ID (Int) - PK
- Name
- Location
-----
Now I have some additional tables, that contain related information for each of that types. So I have e.g. a table that contains settings for all of those types. This table has a combined primary key that consist of an Integer field, containing the ID of the referencing Type, and a Column with a CHAR as Type Identifier (e.g. 'C' for Computer, 'R' for Role).
-----
Table X
- ID (int) - PK
- Type (char) - PK
- ValueA
- ValueB
- ValueC
-----
Now the mapping would consist of the ID column in both tables plus a static Type Identifier per Identity Type.
Would be great if I could get a hint on how to get this done.
Regards
Maik