本文整理汇总了C#中ISpecification.SatisfyEntitiesFrom方法的典型用法代码示例。如果您正苦于以下问题:C# ISpecification.SatisfyEntitiesFrom方法的具体用法?C# ISpecification.SatisfyEntitiesFrom怎么用?C# ISpecification.SatisfyEntitiesFrom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ISpecification
的用法示例。
在下文中一共展示了ISpecification.SatisfyEntitiesFrom方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetPaged
public IPagedCollection<AttachmentRule> GetPaged(ISpecification<AttachmentRule> specification)
{
var entities = specification.SatisfyEntitiesFrom(this.Values.AsQueryable());
var total = this.Count(specification);
return new PagedCollection<AttachmentRule>(entities.ToList(), specification.PageOrDefault, specification.LimitOrDefault, total);
}
示例2: GetAll
public IList<AttachmentRule> GetAll(ISpecification<AttachmentRule> specification)
{
return specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).ToList();
}
示例3: Count
public int Count(ISpecification<AttachmentRule> specification)
{
return specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).Count();
}
示例4: GetAll
public IList<Setting> GetAll(ISpecification<Setting> specification)
{
return specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).ToList();
}
示例5: Count
public int Count(ISpecification<Setting> specification)
{
return specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).Count();
}
示例6: GetPaged
public IPagedCollection<User> GetPaged(ISpecification<User> specification)
{
return new PagedCollection<User>(specification.SatisfyEntitiesFrom(this.Values.AsQueryable()).ToList(), 1, 10, 0);
}