LogicalKeyFor(String,Func<IEnumerable<String>,String,Boolean>,IEnumerable<String>) Method
- Last UpdatedApr 08, 2026
- 1 minute read
Returns the first field descriptor that is a primary, config key for the given table and constraint.
Failing that, it returns the first realtime field descriptor.
FieldDescriptor LogicalKeyFor(
string tableName,
Func<IEnumerable<string>,string,bool> constraint,
IEnumerable<string> candidateFieldNames
)
FieldDescriptor^ LogicalKeyFor(
String^ tableName,
Func<IEnumerable<String^>^,String^,bool>^ constraint,
IEnumerable<String^>^ candidateFieldNames
)
Parameters
- tableName
- The table name to locate the key for.
- constraint
- A test on the field descriptor. The input value for the predicate are the potential key field names, and the current field name.
- candidateFieldNames
- Potential key field names.
Return Value
A field description for the first logical key (config with predicate if available, then realtime).