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;
|
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) {
|
public void Eq(string propertyName, object value) {
|
||||||
Criterion = Restrictions.Eq(propertyName, value);
|
Criterion = Restrictions.Eq(propertyName, value);
|
||||||
}
|
}
|
||||||
|
@@ -7,6 +7,7 @@ namespace Orchard.ContentManagement {
|
|||||||
IExpressionFactory WithRecord(string recordName);
|
IExpressionFactory WithRecord(string recordName);
|
||||||
IExpressionFactory WithVersionRecord(string recordName);
|
IExpressionFactory WithVersionRecord(string recordName);
|
||||||
IExpressionFactory WithRelationship(string propertyName);
|
IExpressionFactory WithRelationship(string propertyName);
|
||||||
|
IExpressionFactory WithIds(ICollection<int> ids);
|
||||||
|
|
||||||
void Eq(string propertyName, object value);
|
void Eq(string propertyName, object value);
|
||||||
void Like(string propertyName, object value);
|
void Like(string propertyName, object value);
|
||||||
|
Reference in New Issue
Block a user