Specifies a namespace allowing types within it to be referred by their unqualified short type names.
The
<Using> element
can be used in a manner similar to the
using directive in C#.
When
schema compiler
encounters an unqualified type name in the
schema definition file, the namespaces specified in one or more using directives are used
to resolve the type reference.
If the type name is the full name of a class in one of the referenced assemblies, the type reference is resolved to this class. If the type name is ambiguous as regards the namespaces, the schema compiler throws a compilation error.
<Mapping xmlns="urn:TechTalk:TT.OODAL.XmlMapping">
...
<Using namespace="System" />
<Using namespace="Northwind.Business" />
<Type name="Employee">
<!-- reference to Northwind.Business.Employee type with short name -->
...
</Type>
<Type name="Northwind.Business.Order">
<!-- reference to Northwind.Business.Order type with full name -->
...
</Type>
<Type name="Type">
<!-- This is an ambiguous reference bacause there is a "Type" enum created
in the Northwind.Business namespace and it conflicts with System.Type. -->
...
</Type>
</Mapping>
Type: TechTalk.Genome.Schema.Builder.Xml.UsingXmlData
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 | <Reference> Element