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.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
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