ITableOperationsGetNonPrimaryFieldRecordRestriction Method

Gets a record restriction based on the non-primary key values of the specified record.

Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.150 -- Release Build+539c8e20daab1f37d91aaa1ede2f080b59c0c784
RecordRestriction GetNonPrimaryFieldRecordRestriction(
	Object record,
	IEnumerable<string>? excludedFields = null
)

Parameters

record  Object
Record to retrieve non-primary key field values from.
excludedFields  IEnumerableString  (Optional)
Optional additional field names to exclude from the restriction.

Return Value

RecordRestriction
Record restriction based on the non-primary key values of the specified record.

Remarks

This will look up a newly added record when the primary key values are not yet defined searching all field values. If all fields do not represent a unique record, queries based on this restriction will return multiple records. Note that if the modeled table has fields that are known be unique, searching based on those fields is preferred.

Any field modeled with ExcludedFieldAttribute will automatically be excluded from the restriction. The excludedFields parameter can be used to specify additional fields to exclude from the restriction.

See Also