Exago .NET API Documentation
KeyColumnCollection Class
Members  Example 
WebReports.Api.Reports Namespace : KeyColumnCollection Class
A collection of the Unique Key Fields of an Entity (Data Object). Do not instantiate this collection, access the collection with the KeyColumns Property of the Entity Class. Each unique key field is represented by a KeyColumn Object in the collection.
Syntax
public class KeyColumnCollection : WebReports.Api.Common.WrProtectedList<KeyColumn> 
Remarks

Collection classes are enumerable Lists of a specific object type.

See the Example section for ways to iterate through and manipulate Collections.

Example
Add ID as a unique key field
myNewEntity.KeyColumns.Add(new KeyColumn(myNewEntity.GetColumn("ID").ActualFullName));
Inheritance Hierarchy

System.Object
      WebReports.Api.Reports.KeyColumnCollection

See Also

Reference

KeyColumnCollection Members
WebReports.Api.Reports Namespace