define_index Method (p_name, p_table, p_fields, p_unique)
NamespacesSorm.InterfacesProviderdefine_index(String, String, array<String>[]()[], Boolean)

[This is preliminary documentation and is subject to change.]

Create a named index for a given table.
Declaration Syntax
C#Visual BasicVisual C++
void define_index(
	string p_name,
	string p_table,
	string[] p_fields,
	bool p_unique
Sub define_index ( _
	p_name As String, _
	p_table As String, _
	p_fields As String(), _
	p_unique As Boolean _
void define_index(
	String^ p_name, 
	String^ p_table, 
	array<String^>^ p_fields, 
	bool p_unique
p_name (String)
Name of index
p_table (String)
Table to add an index to
p_fields (array< String >[]()[])
List of field names used for the index
p_unique (Boolean)
True means index is a unique one

Assembly: sorm.interfaces (Module: sorm.interfaces) Version: