Example #1
0
        public object CreateInstance(IInternalObjectDBTransaction tr, ByteBuffer keyBytes, ByteBuffer valueBytes,
                                     bool keyContainsRelationIndex = true)
        {
            var obj       = Creator(tr);
            var keyReader = new ByteBufferReader(keyBytes);

            if (keyContainsRelationIndex)
            {
                keyReader.SkipVUInt32(); //index Relation
            }
            GetPrimaryKeysLoader(ClientTypeVersion)(tr, keyReader, obj);
            var valueReader = new ByteBufferReader(valueBytes);
            var version     = valueReader.ReadVUInt32();

            GetValueLoader(version)(tr, valueReader, obj);
            return(obj);
        }