Add this attribute to your data interface to specify one or more primary key fields.
Namespace: Composite.DataAssembly: Composite (in Composite.dll) Version: 5.3.6135.33083
Syntax
Examples
This sample shows how to use the KeyPropertyName attribute:
CopyC#
This example shows how to specify a compound key. :
CopyC#

[KeyPropertyName("Id")] // (other IData attributes) interface IMyDataType : IData { Guid Id { get; set; } // other data type properties }

[KeyPropertyName(0, "FolderName")] [KeyPropertyName(1, "FileName")] // (other IData attributes) interface IMyDataType : IData { string FolderName { get; set; } string FileName { get; set; } // other data type properties }