TechTalk Genome v4.2

<Ignore> Element

Signals that the property should be ignored. The property can be used neither in OQL expressions nor in client code.

<Member name=" property ">
<Ignore [ value="true|false" ] />
</Member>
property
A property referring to a persistent type. The property can have getter or setter or both.
value
If true, acessing the property in client code causes a NotImplementedException, or a SchemaException if the property is used in an OQL expression.

Remarks

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.

Examples

          
    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>
                        

Requirements

Type: TechTalk.Genome.Mapping.IgnoreXmlData

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

Field Mappings | XmlMapping.Elements.PersistentField | <NearObjectReference> Element