Signals that the property should be ignored. The property can be used neither in OQL expressions nor in client code.
Mapping a property with <Ignore> can be useful if you do not want to or cannot provide a valid mapping for a property yet (e.g. you would need a <NearObjectReference> to a type that is not mapped yet). In this case, using the <Ignore> element enables you to compile the schema, although the property will not be usable.
Employee.cs
public abstract class Employee : Persistent {
...
public abstract string FirstName { get; set; }
public abstract string HomePhone { get; set; }
}
NorthwindSchema.xml
<Mapping xmlns="urn:TechTalk:TT.OODAL.XmlMapping">
...
<Type name="Employee">
...
<!-- using Ignore as element -->
<Member name="FirstName">
<Ignore />
</Member>
<!-- using Ignore as attribute -->
<Member name="HomePhone" Ignore="true" />
</Type>
</Mapping>
Type: TechTalk.Genome.Mapping.IgnoreXmlData
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
Field Mappings | XmlMapping.Elements.PersistentField | <NearObjectReference> Element