Chili.Opf3 Send comments on this topic.
IDynamicPopulateHelper Interface
See Also  Members   Example
Chili.Opf3 Namespace : IDynamicPopulateHelper Interface




This interface that is implemented by objects that are populated without reflection.

Syntax

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

Example

The following example shows how to implement the interface.
C#Copy Code
            [Persistent("USER")] 
public class User : IDynamicPopulateHelper 

    // ... Other properties and code. 

    

Remarks

This marker interface is implemented by classes that won't let the framework populate (via reflection) them with data or retrieve data from them via reflection.

If the framework encounters a persistent object that implements this interface it injects runtime code to populate the persistent object without using reflection.

The same behaviour is also reached by setting the TypeMapping's AutoInjectDynamicPopulateHelper property to true. Setting that property to true injects code in all persistent objects!

Requirements

Namespace: Chili.Opf3

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