Knight Data Access Layer
Search Method (BaseActiveRecord<T>)




KellermanSoftware.NetDataAccessLayer Namespace > BaseActiveRecord<T> Class : Search Method
What to search for. Default values are not searched.
Order by SQL Clause
The page number starting at 1
The number of records per page
Search for records based on the passed in search object and page in the database
Syntax
Public Function Search( _
   ByVal searchParameters As T, _
   ByVal orderBy As String, _
   ByVal page As Integer, _
   ByVal pageSize As Integer _
) As List(Of T)
Dim instance As BaseActiveRecord(Of T)
Dim searchParameters As T
Dim orderBy As String
Dim page As Integer
Dim pageSize As Integer
Dim value As List(Of T)
 
value = instance.Search(searchParameters, orderBy, page, pageSize)
public List<T> Search( 
   T searchParameters,
   string orderBy,
   int page,
   int pageSize
)
public: List<T*>* Search( 
   T* searchParameters,
   string* orderBy,
   int page,
   int pageSize
) 
public:
List<T^>^ Search( 
   T^ searchParameters,
   String^ orderBy,
   int page,
   int pageSize
) 

Parameters

searchParameters
What to search for. Default values are not searched.
orderBy
Order by SQL Clause
page
The page number starting at 1
pageSize
The number of records per page
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BaseActiveRecord<T> Class
BaseActiveRecord<T> Members