TechTalk Genome v4.2

<Reference> Element

Specifies an assembly reference allowing types of the assembly to be used in the schema definition file.

<Reference assembly=" assembly-name " />
assembly-name
A fully qualified or partial assembly name.

Remarks

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:

  1. the folder that ddsc.exe is located in
  2. the Global Assembly Cache of the machine if the assembly was specified with a fully qualified name
  3. the assembly-lookup-path specified for schema compilation
  4. the Global Assembly Cache of the machine if the assembly was specified with a partial name
The <bindingRedirect> element and the <qualifyAssembly> element can also be used in the configuration file of the schema compiler to alter the method by which assemblies are loaded by name.

Examples

<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>
                

Requirements

Type: TechTalk.Genome.Schema.Builder.Xml.ReferenceXmlData

Assembly: TechTalk.Genome.dll

Version: 4.2.11

Editions: Professional, Evaluation, Express

Database Platforms: Microsoft SQL Server 2000, Microsoft SQL Server 2005, Oracle 9i Release 2, Oracle 10g Release 2

See Also

<Mapping> Element | <Using> Element