本文整理汇总了C#中IQuery.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# IQuery.ToString方法的具体用法?C# IQuery.ToString怎么用?C# IQuery.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IQuery
的用法示例。
在下文中一共展示了IQuery.ToString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FindComponentPresentations
public IList<IComponentPresentation> FindComponentPresentations(IQuery queryParameters, int pageIndex, int pageSize, out int totalCount)
{
LoggerService.Debug(">>FindComponentPresentations ({0},{1})", LoggingCategory.Performance, queryParameters.ToString(), Convert.ToString(pageIndex));
totalCount = 0;
IList<string> results = ComponentPresentationProvider.FindComponents(queryParameters);
totalCount = results.Count;
var pagedResults = results
.Skip(pageIndex * pageSize)
.Take(pageSize)
.Select(c => { IComponentPresentation cp = null; TryGetComponentPresentation(out cp, c); return cp; })
.Where(cp => cp != null)
.ToList();
LoggerService.Debug("<<FindComponentPresentations ({0},{1})", LoggingCategory.Performance, queryParameters.ToString(), Convert.ToString(pageIndex));
return pagedResults;
}
示例2: Execute
public virtual object[][] Execute(IQuery qry)
{
return Execute(qry.ToString(), qry.GetData().ToArray());
}
示例3: ListMediaItemData
public IList<MediaItemData> ListMediaItemData(IQuery query)
{
IList<MediaItem> items = ListMediaItems(query.ToString());
return CreateMediaItemDataList(items);
}
示例4: Query
public virtual SPListItemCollection Query(SPWeb web, IQuery query)
{
var camlExpression = query.ToString();
return Query(web, camlExpression);
}
示例5: Query
public Response<IdResult> Query(IQuery query)
{
using (var stream = _httpConnection.Get(Core + "/select", query.ToString()))
{
var response = new Response<IdResult>(stream);
return response;
}
}