Specifies an assembly reference allowing types of the assembly to be used in the schema definition file.
When the schema compiler encounters a <Reference> elements during compilation, it tries to load the assembly by using assembly-name. This assembly is also investigated to resolve type references.
Types can be referred in several places of the schema definition file, such as the <Type> elements , parameter list of <Member> elements or OQL expressions.
The schema compiler probes the following paths in the file system to load the assembly:
<Mapping xmlns="urn:TechTalk:TT.OODAL.XmlMapping">
<Reference assembly="mscorlib" />
<!-- reference to mscorlib.dll from GAC with partial name -->
<Reference assembly="System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- reference to System.Data.dll from GAC with fully qualified name -->
<Reference assembly="TechTalk.Genome" />
<!-- the TechTalk.Genome.dll will be used from the folder where the
ddsc.exe is located -->
<Reference assembly="Northwind.Business, Version=1.0.1375.34576" />
<!-- reference to Northwind.Business.dll from the assembly lookup path -->
...
</Mapping>
Type: TechTalk.Genome.Schema.Builder.Xml.ReferenceXmlData
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
<Mapping> Element | <Using> Element