Esempio n. 1
0
        private int GetTableObjectUID(Database.Table table, long row)
        {
            var indexColBase = table.GetColumnByName("Index");
            var indexColSub  = indexColBase;

            while (indexColSub != null && indexColSub is Database.IColumnDecorator)
            {
                indexColSub = (indexColSub as Database.IColumnDecorator).GetBaseColumn();
            }
            if (indexColSub != null && indexColSub is ObjectListUnifiedIndexColumn)
            {
                var indexCol  = (Database.ColumnTyped <int>)indexColBase;
                var objectUID = indexCol.GetRowValue(row);
                return(objectUID);
            }
            return(-1);
        }