MasterDetailRelationAttribute.MasterKeyField property

namespace: Serenity.Data.Mapping   assemblySerenity.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; }

See Also