Knight Data Access Layer
LoadByColumn<T>(String,Object) Method




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class : LoadByColumn<T>(String,Object) Method
Generic class type
Column name in the database
The value of the column to search for
Load records based on a column into a class list
Syntax
Public Function LoadByColumn(Of T As {Class, New})( _
   ByVal columnName As String, _
   ByVal columnValue As Object _
) As List(Of T)
Dim instance As ObjectCrud
Dim columnName As String
Dim columnValue As Object
Dim value As List(Of T)
 
value = instance.LoadByColumn(Of T)(columnName, columnValue)
public List<T> LoadByColumn<T>( 
   string columnName,
   object columnValue
)
where T: class, new()
public: List<T*>* LoadByColumn<T>( 
   string* columnName,
   Object* columnValue
) 
where T: ref class, gcnew()
public:
List<T^>^ LoadByColumngeneric<typename T>
( 
   String^ columnName,
   Object^ columnValue
) 
where T: ref class, gcnew()

Parameters

columnName
Column name in the database
columnValue
The value of the column to search for

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