Chili.Opf3 Send comments on this topic.
ITypeMappingProvider Interface
See Also  Members   Example
Chili.Opf3.Mapping.Providers Namespace : ITypeMappingProvider Interface




This interface is implemented by classes, which create the type mapping for a persistent type.

Syntax

Visual Basic (Declaration) 
Public Interface ITypeMappingProvider 
Visual Basic (Usage)Copy Code
Dim instance As ITypeMappingProvider
C# 
public interface ITypeMappingProvider 
Managed Extensions for C++ 
public __gc __interface ITypeMappingProvider 
C++/CLI 
public interface class ITypeMappingProvider 

Example

The following example shows how to set a class that implements the ITypeMappingProvider.
C#Copy Code
// Set the AttributeTypeMappingProvider that is creating the mapping by 
// inspecting the attriutes put on the persistent type's members. 
TypeMapping.Provider = new AttributeTypeMappingProvider(); 
    

Remarks

The mapping is created by compiling and returning instances of PersistentAttribute, FieldAttribute and RelationAttribute classes. The framework uses those classes afterwards to create the TypeMapping instances for the persistent types.

Requirements

Namespace: Chili.Opf3.Mapping.Providers

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Chili.Opf3 (in Chili.Opf3.dll)

See Also