TableOperationsTGetNonPrimaryFieldRecordRestriction 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.147 -- Release Build+c5cc8ba56e7568e903c204fe8ae9773b97af8eef
public RecordRestriction GetNonPrimaryFieldRecordRestriction(
	T record,
	IEnumerable<string>? excludedFields = null
)

Parameters

record  T
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