Ninja Database Pro
AddIndex<T,TIndex>(BaseSingleIndex<T,TIndex>) Method



KellermanSoftware.NinjaDatabasePro Namespace > NinjaDbPro Class > AddIndex Method : AddIndex<T,TIndex>(BaseSingleIndex<T,TIndex>) Method
Add a custom index for a single property value. See the SterlingSingleIndex in the example directory for an example implementation.
Syntax
Public Overloads Sub AddIndex
    (Of T As {Class, New},
     TIndex)( _
   ByVal singleIndex As BaseSingleIndex(Of T,TIndex) _
) 
Dim instance As NinjaDbPro
Dim singleIndex As BaseSingleIndex(Of T,TIndex)
 
instance.AddIndex(Of T, TIndex)(singleIndex)
public void AddIndex<T,TIndex>( 
   BaseSingleIndex<T,TIndex> singleIndex
)
where T: class, new()
public:
void AddIndexgeneric<typename T>
generic<typename TIndex>
( 
   BaseSingleIndex<T^,TIndex^>^ singleIndex
) 
where T: ref class, gcnew()

Parameters

singleIndex

Type Parameters

T
TIndex
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

NinjaDbPro Class
NinjaDbPro Members
Overload List