Click or drag to resize

ITableOperationsGetSearchRestriction Method

Generates a RecordRestriction based on fields marked with SearchableAttribute and specified searchText.

Namespace: GSF.Data.Model
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
RecordRestriction GetSearchRestriction(
	string searchText
)
View Source

Parameters

searchText  String
Text to search.

Return Value

RecordRestriction
RecordRestriction based on fields marked with SearchableAttribute and specified searchText.
Remarks
Any fields marked with both SearchableAttribute and EncryptDataAttribute will be automatically managed, i.e., the returned RecordRestriction parameters will already apply any field based encryption as needed. Database query functions executed for fields marked for encryption will only be searched using FullValueMatch, regardless of any otherwise specified value in the SearchableAttribute as encryption is handled locally. However, the SearchRecords(String, Boolean, String, StringComparison) function can be used to find data in encrypted fields that are marked for search with a LikeExpression.
See Also