ComponentOne DataObjects for .NET
OneWay Property

C1.Data.2 Assembly > C1.Data.SchemaObjects Namespace > ViewRelation Class : OneWay Property
For a relation specified in code in GetChildRows event, indicates whether GetParentRow is not available.
Syntax
'Declaration
 
Public Overridable Property OneWay As System.Boolean
public virtual System.bool OneWay {get; set;}
Remarks
This property has effect only for custom relations, those defined in code, with GetRowsEvent=True. If this property is set to True, code in C1.Data.C1DataSetLogic.GetParentRow event can be omitted, calling C1.Data.C1DataSetLogic.GetParentRow for this relation will throw exception. Set this property to True if it is difficult or simply unnecessary to reverse your algorithm enumerating child rows. Note that only GetChildRows is used for master-detail data binding, C1.Data.C1DataSetLogic.GetParentRow is not necessary.

In C1DataExpress, OneWay is always True for custom relations.

See Also

Reference

ViewRelation Class
ViewRelation Members
View Relations