Use CreateIndex to create an index for an MBO table located on the device database.
/** @param entity the EntityMetaData for the table @param index the IndexMetaData */ public static void CreateIndex(EntityMetaData entity, IndexMetaData index)
Sybase.Reflection.IndexMetaData index = new Sybase.Reflection.IndexMetaData(); index.SetName("sampleIndex"); index.SetUnique(true); index.GetAttributes().Add(SampleMBO.GetMetaData().GetAttribute("sample_id")); SampleDB.CloseDBConnection(); SampleDB.CreateIndex(SampleMBO.GetMetaData(), index);