Example #1
0
        public Maybe <PropertyValue> Read(NID[] nodePath, PropertyTag propertyTag)
        {
            var dataRecord = bthReader.ReadDataRecord(nodePath, propertyTag.Id);

            if (dataRecord.HasNoValue)
            {
                return(Maybe <PropertyValue> .NoValue());
            }

            return(propertyValueReader.Read(nodePath, propertyTag.Type, dataRecord.Value.Data.Take(2, 4)));
        }
Example #2
0
        public Maybe <int> GetRowIndex(NID[] nodePath, int rowId)
        {
            var tcinfo = GetTableContextInfo(nodePath);

            var dataRecord = bthReader.ReadDataRecord(nodePath, tcinfo.RowIndex, rowId);

            if (dataRecord.HasNoValue)
            {
                return(Maybe <int> .NoValue());
            }

            return(dataRecord.Value.Data.ToInt32());
        }