TechTalk Genome v4.2

<Mapping> Element

The root element of the schema definition xml file.

Zero or more <Reference> elements defining assembly references. This allows types of the referenced assemblies to be used in the schema definition file.
Zero or more <Using> elements specifying namespaces that are investigated whenever an unqualified class name is found in the schema definition file. This allows types to be used with their short names.
Zero or more <Type> elements defining the representation of types in the underlying relational database system and/or translation of their members to SQL.


The <Mapping> element has to be the root element of the schema definition xml file. It contains all type mapping information as sub-elements.

The default XML namespace of the elements in the schema definition file has to be the urn:TechTalk:TT.OODAL.XmlMapping namespace.


<?xml version="1.0" ?>
<Mapping xmlns="urn:TechTalk:TT.OODAL.XmlMapping">
    <Reference assembly="mscorlib" />
    <Reference assembly="TechTalk.Genome" />
    <Reference assembly="Northwind.Business" />

    <Using namespace="System" />
    <Using namespace="TechTalk.Genome.Mapping" />
    <Using namespace="TechTalk.Genome.Schema.Builder.Xml" />
    <Using namespace="Northwind.Business" />
    <Type name="Employee">


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

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

<Reference> Element | <Using> Element | <Type> Element