Click or drag to resize
Grid Solutions Framework

MetadataQuery Method

Queries eDNA meta-data for values defined in search values.

Namespace: eDNAAdapters
Assembly: eDNAAdapters (in eDNAAdapters.dll) Version: 2.4.207-beta
Syntax
public static IEnumerable<Metadata> Query(
	Metadata search,
	Func<Metadata, bool> match = null
)
View Source

Parameters

search  Metadata
Metadata values to search.
match  FuncMetadata, Boolean  (Optional)
Optional predicate delegate that defines the valid conditions of the elements being searched.

Return Value

IEnumerableMetadata
Values that match search criteria.
Remarks

Searches on reference fields require use of match predicate function since the eDNA function to search meta-data, i.e., Configuration.EzSimpleFindPoints, ignores reference field values.

Since meta-data lookups on non-key fields are a linear O(n) operation, consider a strategy that will scan and cache the full meta-data when use case demands multiple search operations or complete meta-data set.

See Also