EF6: Single relationship table for multiple related entities
<p>I have a EF Model with many entities, like Nodes, Attributes, Tags, etc.</p>

<p>There is also an "Alias" entity, and pretty much every other entity else can have a many-to-many relationship with Aliases.  One of the undesired things about this is the number of tables that are created to track these relationships (eg. NodeAlias, AttributeAlias, etc.).</p>

<p>Are there any design alternatives that could map an Alias to all of the other entities in a single table?  I was thinking maybe something along these lines if it's possible:</p>

<pre><code>+---------+--------+-------------+-----------+
| AliasId | NodeId | AttributeId |   TagId   |
+---------+--------+-------------+-----------+
|       1 |      1 |           2 |         3 |
+---------+--------+-------------+-----------+
</code></pre>