MasterDetailRelationAttribute.MasterKeyField property
namespace: Serenity.Data.Mapping assembly: Serenity.Net.Data
Optional: override the default behaviour and use a different master id (PK) field (i.e. from a unique constraint)
public string MasterKeyField { get; set; }