mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding WithIds to IExpressionFactory
--HG-- branch : 1.x
This commit is contained in:
@@ -293,6 +293,12 @@ namespace Orchard.ContentManagement {
|
||||
return this;
|
||||
}
|
||||
|
||||
public IExpressionFactory WithIds(ICollection<int> ids) {
|
||||
Criteria = _query.BindItemCriteria();
|
||||
Criterion = Restrictions.InG("Id", ids);
|
||||
return this;
|
||||
}
|
||||
|
||||
public void Eq(string propertyName, object value) {
|
||||
Criterion = Restrictions.Eq(propertyName, value);
|
||||
}
|
||||
|
@@ -7,6 +7,7 @@ namespace Orchard.ContentManagement {
|
||||
IExpressionFactory WithRecord(string recordName);
|
||||
IExpressionFactory WithVersionRecord(string recordName);
|
||||
IExpressionFactory WithRelationship(string propertyName);
|
||||
IExpressionFactory WithIds(ICollection<int> ids);
|
||||
|
||||
void Eq(string propertyName, object value);
|
||||
void Like(string propertyName, object value);
|
||||
|
Reference in New Issue
Block a user