Knight Data Access Layer
Search<T>(T,String,Int32,Int32) Method




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class > Search Method : Search<T>(T,String,Int32,Int32) Method
Generic class type
What to search for
Order by SQL Clause
The page of records to retrieve
The number of records per page
Search for records based on the passed in search object
Syntax
Public Overloads Function Search(Of T As {Class, New})( _
   ByVal searchParameters As T, _
   ByVal orderBy As String, _
   ByVal page As Integer, _
   ByVal pageSize As Integer _
) As List(Of T)
Dim instance As ObjectCrud
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(Of T)(searchParameters, orderBy, page, pageSize)
public List<T> Search<T>( 
   T searchParameters,
   string orderBy,
   int page,
   int pageSize
)
where T: class, new()
public: List<T*>* Search<T>( 
   T* searchParameters,
   string* orderBy,
   int page,
   int pageSize
) 
where T: ref class, gcnew()
public:
List<T^>^ Searchgeneric<typename T>
( 
   T^ searchParameters,
   String^ orderBy,
   int page,
   int pageSize
) 
where T: ref class, gcnew()

Parameters

searchParameters
What to search for
orderBy
Order by SQL Clause
page
The page of records to retrieve
pageSize
The number of records per page

Type Parameters

T
Generic class type
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

ObjectCrud Class
ObjectCrud Members
Overload List