Interface that is implemented to control the way how relations are loaded.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Interface IRelationsPopulateHelper |
| C# | |
|---|
public interface IRelationsPopulateHelper |
| Managed Extensions for C++ | |
|---|
public __gc __interface IRelationsPopulateHelper |
| C++/CLI | |
|---|
public interface class IRelationsPopulateHelper |
Example
The following example shows how to implement the interface. In the following example
all the related properties aren't populate.
| C# | Copy Code |
|---|
[Persistent("USER")] public class User : IRelationsPopulateHelper { // ... Other properties and code. bool IRelationsPopulateHelper.RelationIsHandled(string relationName, RelationInformation info) { // Return true for all relations. Means all are handled by this interface. return true; } object IRelationsPopulateHelper.GetRelatedObject(string relationName, RelationInformation info) { // Return null for all relations. No related object is going to be populated. return null; } } |
Remarks
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