本文整理汇总了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);
}
示例2: Constrain
public void Constrain(IQuery query)
{
query.Descend(InterfaceQueryTestCase.FieldA).Constrain(10).Not();
}
示例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();
}
示例4: AddFieldConstraint
private IConstraint AddFieldConstraint(IQuery query, PersistentEntryTemplate template
, int index)
{
return query.Descend(template.fieldNames[index]).Constrain(template.fieldValues[index
]);
}
示例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();
}
示例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]));
}
}
}
示例7: QueryForItem
private Item QueryForItem(IQuery q, int n)
{
q.Constrain(typeof (Item));
q.Descend("_name").Constrain("item" + n);
return (Item) q.Execute().Next();
}