当前位置: 首页>>代码示例>>C#>>正文


C# IQuery.Descend方法代码示例

本文整理汇总了C#中IQuery.Descend方法的典型用法代码示例。如果您正苦于以下问题:C# IQuery.Descend方法的具体用法?C# IQuery.Descend怎么用?C# IQuery.Descend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IQuery的用法示例。


在下文中一共展示了IQuery.Descend方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Constrain

 public void Constrain(IQuery query)
 {
     var icon1 = query.Descend(FieldA).Constrain(10);
     var icon2 = query.Descend(FieldB).Constrain(10);
     icon1.Or(icon2);
 }
开发者ID:masroore,项目名称:db4o,代码行数:6,代码来源:InterfaceQueryTestCase.cs

示例2: Constrain

			public void Constrain(IQuery query)
			{
				query.Descend(InterfaceQueryTestCase.FieldA).Constrain(10).Not();
			}
开发者ID:superyfwy,项目名称:db4o,代码行数:4,代码来源:InterfaceQueryTestCase.cs

示例3: QueryForItem

		private IxFreespaceMigrationTestCase.Item QueryForItem(IQuery q, int n)
		{
			q.Constrain(typeof(IxFreespaceMigrationTestCase.Item));
			q.Descend("_name").Constrain("item" + n);
			return (IxFreespaceMigrationTestCase.Item)q.Execute().Next();
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:6,代码来源:IxFreespaceMigrationTestCase.cs

示例4: AddFieldConstraint

 private IConstraint AddFieldConstraint(IQuery query, PersistentEntryTemplate template
     , int index)
 {
     return query.Descend(template.fieldNames[index]).Constrain(template.fieldValues[index
         ]);
 }
开发者ID:masroore,项目名称:db4o,代码行数:6,代码来源:Db4oPersistenceProvider.cs

示例5: WhereModified

		/// <summary>
		/// adds a constraint to the passed Query to query only for objects that were
		/// modified since the last replication process between this and the other
		/// ObjectContainer involved in the current replication process.
		/// </summary>
		/// <remarks>
		/// adds a constraint to the passed Query to query only for objects that were
		/// modified since the last replication process between this and the other
		/// ObjectContainer involved in the current replication process.
		/// </remarks>
		/// <param name="query">the Query to be constrained</param>
		public virtual void WhereModified(IQuery query)
		{
			query.Descend(VirtualField.CommitTimestamp).Constrain(GetLastReplicationVersion()
				).Greater();
		}
开发者ID:erdincay,项目名称:db4o,代码行数:16,代码来源:Db4oEmbeddedReplicationProvider.cs

示例6: WhereModified

		/// <summary>
		/// adds a constraint to the passed Query to query only for objects that were
		/// modified since the last replication process between this and the other
		/// ObjectContainer involved in the current replication process.
		/// </summary>
		/// <remarks>
		/// adds a constraint to the passed Query to query only for objects that were
		/// modified since the last replication process between this and the other
		/// ObjectContainer involved in the current replication process.
		/// </remarks>
		/// <param name="query">the Query to be constrained</param>
		public virtual void WhereModified(IQuery query)
		{
			IQuery qTimestamp = query.Descend(VirtualField.CommitTimestamp);
			IConstraint constraint = qTimestamp.Constrain(GetLastReplicationVersion()).Greater
				();
			long[] concurrentTimestamps = _replicationRecord._concurrentTimestamps;
			if (concurrentTimestamps != null)
			{
				for (int i = 0; i < concurrentTimestamps.Length; i++)
				{
					constraint = constraint.Or(qTimestamp.Constrain(concurrentTimestamps[i]));
				}
			}
		}
开发者ID:Galigator,项目名称:db4o,代码行数:25,代码来源:Db4oEmbeddedReplicationProvider.cs

示例7: QueryForItem

 private Item QueryForItem(IQuery q, int n)
 {
     q.Constrain(typeof (Item));
     q.Descend("_name").Constrain("item" + n);
     return (Item) q.Execute().Next();
 }
开发者ID:masroore,项目名称:db4o,代码行数:6,代码来源:IxFreespaceMigrationTestCase.cs


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