• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Internal.FieldMetadata类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Db4objects.Db4o.Internal.FieldMetadata的典型用法代码示例。如果您正苦于以下问题:C# FieldMetadata类的具体用法?C# FieldMetadata怎么用?C# FieldMetadata使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



FieldMetadata类属于Db4objects.Db4o.Internal命名空间,在下文中一共展示了FieldMetadata类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: InitOnUp

		public virtual void InitOnUp(Transaction systemTrans, FieldMetadata fieldMetadata
			)
		{
			ObjectContainerBase anyStream = systemTrans.Container();
			if (!anyStream.MaintainsIndices())
			{
				return;
			}
			if (!fieldMetadata.SupportsIndex())
			{
				Indexed(false);
			}
			TernaryBool indexedFlag = _config.GetAsTernaryBool(IndexedKey);
			if (indexedFlag.DefiniteNo())
			{
				fieldMetadata.DropIndex((LocalTransaction)systemTrans);
				return;
			}
			if (UseExistingIndex(systemTrans, fieldMetadata))
			{
				return;
			}
			if (!indexedFlag.DefiniteYes())
			{
				return;
			}
			fieldMetadata.CreateIndex();
		}
开发者ID:Galigator,项目名称:db4o,代码行数:28,代码来源:Config4Field.cs


示例2: Process

			protected override void Process(FieldMetadata field)
			{
				if (!field.IsVirtual() && field.HasIndex())
				{
					this._enclosing.ProcessBTree(context, field.GetIndex(context.SystemTrans()));
				}
			}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:FirstPassCommand.cs


示例3: QField

		public QField(Transaction a_trans, string name, FieldMetadata fieldMetadata, int 
			classMetadataID, int a_index)
		{
			// C/S only	
			i_trans = a_trans;
			i_name = name;
			_fieldMetadata = fieldMetadata;
			i_classMetadataID = classMetadataID;
			_fieldHandle = a_index;
			if (_fieldMetadata != null)
			{
				if (!_fieldMetadata.Alive())
				{
					_fieldMetadata = null;
				}
			}
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:17,代码来源:QField.cs


示例4: Process

			protected override void Process(FieldMetadata field)
			{
				Assert.IsNotNull(expectedNames.Remove(field.GetName()));
			}
开发者ID:erdincay,项目名称:db4o,代码行数:4,代码来源:ClassMetadataIntegrationTestCase.cs


示例5: FieldIndexException

		public FieldIndexException(string msg, Exception cause, FieldMetadata field) : this
			(msg, cause, field.ContainingClass().GetName(), field.GetName())
		{
		}
开发者ID:Galigator,项目名称:db4o,代码行数:4,代码来源:FieldIndexException.cs


示例6: FieldValueKey

			public FieldValueKey(int id, FieldMetadata field)
			{
				_id = id;
				_field = field;
			}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:5,代码来源:SodaQueryComparator.cs


示例7: StoredFieldImpl

 public StoredFieldImpl(Transaction transaction, FieldMetadata
     fieldMetadata)
 {
     _transaction = transaction;
     _fieldMetadata = fieldMetadata;
 }
开发者ID:masroore,项目名称:db4o,代码行数:6,代码来源:StoredFieldImpl.cs


示例8: Attach

		internal virtual bool Attach(QQuery query, string a_field)
		{
			Db4objects.Db4o.Internal.Query.Processor.QCon qcon = this;
			ClassMetadata yc = GetYapClass();
			bool[] foundField = new bool[] { false };
			ForEachChildField(a_field, new _IVisitor4_101(foundField, query));
			if (foundField[0])
			{
				return true;
			}
			QField qf = null;
			if (yc == null || yc.HoldsAnyClass())
			{
				int[] count = new int[] { 0 };
				FieldMetadata[] yfs = new FieldMetadata[] { null };
				i_trans.Container().ClassCollection().AttachQueryNode(a_field, new _IVisitor4_119
					(yfs, count));
				if (count[0] == 0)
				{
					return false;
				}
				if (count[0] == 1)
				{
					qf = yfs[0].QField(i_trans);
				}
				else
				{
					qf = new QField(i_trans, a_field, null, 0, 0);
				}
			}
			else
			{
				if (yc.IsTranslated())
				{
					i_trans.Container()._handlers.DiagnosticProcessor().DescendIntoTranslator(yc, a_field
						);
				}
				FieldMetadata yf = yc.FieldMetadataForName(a_field);
				if (yf != null)
				{
					qf = yf.QField(i_trans);
				}
				if (qf == null)
				{
					qf = new QField(i_trans, a_field, null, 0, 0);
				}
			}
			QConPath qcp = new QConPath(i_trans, qcon, qf);
			query.AddConstraint(qcp);
			qcon.AddConstraint(qcp);
			return true;
		}
开发者ID:Galigator,项目名称:db4o,代码行数:52,代码来源:QCon.cs


示例9: HasBTreeIndex

		private bool HasBTreeIndex(FieldMetadata field)
		{
			return !field.IsVirtual();
		}
开发者ID:superyfwy,项目名称:db4o,代码行数:4,代码来源:FieldMarshaller1.cs


示例10: AddIndexEntry

		public virtual void AddIndexEntry(FieldMetadata fieldMetadata, object obj)
		{
			if (!_currentBuffer.HasParent())
			{
				object indexEntry = (obj == _currentMarshalledObject) ? _currentIndexEntry : obj;
				if (_isNew || !UpdateDepth().CanSkip(_reference))
				{
					fieldMetadata.AddIndexEntry(Transaction(), ObjectID(), indexEntry);
				}
				return;
			}
			_currentBuffer.RequestIndexEntry(fieldMetadata);
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:13,代码来源:MarshallingContext.cs


示例11: Process

			protected override void Process(FieldMetadata field)
			{
				if (field.CanAddToQuery(fieldName))
				{
					foundField.value = field;
				}
			}
开发者ID:erdincay,项目名称:db4o,代码行数:7,代码来源:ObjectContainerBase.cs


示例12: Unmarshall

		internal virtual void Unmarshall(Transaction a_trans)
		{
			if (i_classMetadataID != 0)
			{
				ClassMetadata yc = a_trans.Container().ClassMetadataForID(i_classMetadataID);
				_fieldMetadata = (FieldMetadata)yc._aspects[_fieldHandle];
			}
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:8,代码来源:QField.cs


示例13: CollectReflectFields

		private bool CollectReflectFields(Collection4 collectedAspects)
		{
			bool dirty = false;
			IReflectField[] reflectFieldArray = ReflectFields();
			for (int reflectFieldIndex = 0; reflectFieldIndex < reflectFieldArray.Length; ++reflectFieldIndex)
			{
				IReflectField reflectField = reflectFieldArray[reflectFieldIndex];
				if (!StoreField(reflectField))
				{
					continue;
				}
				Db4objects.Db4o.Internal.ClassMetadata classMetadata = Handlers4.ErasedFieldType(
					Container(), reflectField.GetFieldType());
				if (classMetadata == null)
				{
					continue;
				}
				FieldMetadata field = new FieldMetadata(this, reflectField, classMetadata);
				if (Contains(collectedAspects, field))
				{
					continue;
				}
				dirty = true;
				collectedAspects.Add(field);
			}
			return dirty;
		}
开发者ID:erdincay,项目名称:db4o,代码行数:27,代码来源:ClassMetadata.cs


示例14: ReadFieldValue

		private object ReadFieldValue(int id, FieldMetadata field)
		{
			ByteArrayBuffer buffer = BufferFor(id);
			HandlerVersion handlerVersion = field.ContainingClass().SeekToField(_transaction, 
				buffer, field);
			if (handlerVersion == HandlerVersion.Invalid)
			{
				return null;
			}
			QueryingReadContext context = new QueryingReadContext(_transaction, handlerVersion
				._number, buffer, id);
			return field.Read(context);
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:13,代码来源:SodaQueryComparator.cs


示例15: GetFieldValue

		private object GetFieldValue(int id, FieldMetadata field)
		{
			SodaQueryComparator.FieldValueKey key = new SodaQueryComparator.FieldValueKey(id, 
				field);
			object cachedValue = _fieldValueCache[key];
			if (null != cachedValue)
			{
				return cachedValue;
			}
			object fieldValue = ReadFieldValue(id, field);
			_fieldValueCache[key] = fieldValue;
			return fieldValue;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:13,代码来源:SodaQueryComparator.cs


示例16: Process

 protected override void Process(FieldMetadata field)
 {
     if (field.IsEnabledOn(AspectVersionContextImpl.CheckAlwaysEnabled))
     {
         field.CollectConstraints(trans, parentConstraint, obj, visitor);
     }
 }
开发者ID:masroore,项目名称:db4o,代码行数:7,代码来源:ClassMetadata.cs


示例17: RequestIndexEntry

		public virtual void RequestIndexEntry(FieldMetadata fieldMetadata)
		{
			_indexedField = fieldMetadata;
		}
开发者ID:superyfwy,项目名称:db4o,代码行数:4,代码来源:MarshallingBuffer.cs


示例18: Process

			protected override void Process(FieldMetadata field)
			{
				if (field.CanAddToQuery(fieldName))
				{
					visitor.Visit(new object[] { classMetadata, field });
				}
			}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:ClassMetadataRepository.cs


示例19: CollectReflectFields

 private bool CollectReflectFields(Collection4 collectedAspects)
 {
     var dirty = false;
     var reflectFieldArray = ReflectFields();
     for (var reflectFieldIndex = 0; reflectFieldIndex < reflectFieldArray.Length; ++reflectFieldIndex)
     {
         var reflectField = reflectFieldArray[reflectFieldIndex];
         if (!StoreField(reflectField))
         {
             continue;
         }
         var classMetadata = Handlers4.ErasedFieldType(
             Container(), reflectField.GetFieldType());
         if (classMetadata == null)
         {
             continue;
         }
         var field = new FieldMetadata(this, reflectField, classMetadata);
         if (Contains(collectedAspects, field))
         {
             continue;
         }
         dirty = true;
         collectedAspects.Add(field);
     }
     return dirty;
 }
开发者ID:masroore,项目名称:db4o,代码行数:27,代码来源:ClassMetadata.cs


示例20: _IVisitor4_119

			public _IVisitor4_119(FieldMetadata[] yfs, int[] count)
			{
				this.yfs = yfs;
				this.count = count;
			}
开发者ID:Galigator,项目名称:db4o,代码行数:5,代码来源:QCon.cs



注:本文中的Db4objects.Db4o.Internal.FieldMetadata类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Internal.LocalObjectContainer类代码示例发布时间:2022-05-24
下一篇:
C# Internal.DefragmentContextImpl类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap