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.256-beta+0e7e94d39a9b10efe7e26e3b8d5130afc0dd4d74
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