Пример #1
0
        public virtual object Read(IReadContext context)
        {
            ArrayInfo info  = NewArrayInfo();
            object    array = ReadCreate(context.Transaction(), context, info);

            ReadElements(context, info, array);
            return(array);
        }
Пример #2
0
        public virtual void Read(IReadContext context)
        {
            var id = context.ReadInt();

            if (_bTree != null)
            {
                AssertCurrentBTreeId(id);
                return;
            }
            _transaction = context.Transaction();
            _bTree       = BTreeManager().ProduceBTree(id);
        }
Пример #3
0
		private object ReadPlainObject(IReadContext context)
		{
			int id = context.ReadInt();
			Transaction transaction = context.Transaction();
			object obj = transaction.ObjectForIdFromCache(id);
			if (obj != null)
			{
				return obj;
			}
			obj = new object();
			AddReference(context, obj, id);
			return obj;
		}
Пример #4
0
        private object ReadPlainObject(IReadContext context)
        {
            var id          = context.ReadInt();
            var transaction = context.Transaction();
            var obj         = transaction.ObjectForIdFromCache(id);

            if (obj != null)
            {
                return(obj);
            }
            obj = new object();
            AddReference(context, obj, id);
            return(obj);
        }
Пример #5
0
		public virtual object Read(IReadContext context)
		{
			ArrayInfo info = NewArrayInfo();
			object array = ReadCreate(context.Transaction(), context, info);
			ReadElements(context, info, array);
			return array;
		}