Specifies that the connection in the many-to-many association is represented by an automatically generated association class.
dbo in Microsoft SQL Server) is used.
The <Automatic> element implicitly generates an association class invisible in the object model and an association table for the database. Additional attributes can be applied to explicitly specify the structure of the association table in the database.
All details of the association class are generated automatically.
<Type name="Cage">
<Member name="Keepers">
<ManyToManyCollection>
<Automatic/>
</ManyToManyCollection>
</Member>
</Type>
The table name and the generated foreign key details can be specified if necessary.
<Type name="Cage">
<Member name="Keepers">
<ManyToManyCollection>
<Automatic tableName="CageService">
<ParentReference CheckIntegrity="true">
<Map primaryKeyName="Id" foreignKeyName="FK_CAGE_ID" />
</ParentReference>
<ChildReference CheckIntegrity="true">
<Map primaryKeyName="Id" foreignKeyName="FK_KEEPER_ID" />
</ChildReference>
</Automatic>
</ManyToManyCollection>
</Member>
</Type>
Type: TechTalk.Genome.Mapping.AutomaticXmlData, TechTalk.Genome.Mapping.ManyToManyCollectionXmlData
Assembly: TechTalk.Genome.dll
Version: 4.2.4
Editions: Professional, Evaluation, Express
Database Platforms: Microsoft SQL Server 2000, Microsoft SQL Server 2005, Oracle 9i Release 2, Oracle 10g Release 2