Example #1
0
        public void AddUniqueIndexOn(string indexName, params string[] indexFields)
        {
            if (indexFields.Length == 0)
            {
                throw new OdbRuntimeException(
                          NDatabaseError.InternalError.AddParameter("Index has to have at least one field"));
            }

            indexFields = ValidateFields(indexName, indexFields);

            _storageEngine.AddIndexOn(_classInfo.FullClassName, indexName, indexFields, false);
        }