Adding filters to Orchard.Projections

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-10-18 14:37:49 -07:00
parent d56e83b815
commit 674192ed59
5 changed files with 21 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
d0cf85644ff34b0630a12eed746a66a8d88eb5cf src/Orchard.Web/Modules/Orchard.Forms
8413a416e232ac2c90520de8ff07622ba30561db src/Orchard.Web/Modules/Orchard.Projections
3d11da7572a1107aad47b8a9eb4dbb1e7553b18b src/Orchard.Web/Modules/Orchard.Rules
b571876d276f9022c12b8b464d5e138f5ce06c14 src/Orchard.Web/Modules/Orchard.Projections
108ae2f95c8bf9bf0d4d06d0e31b5b77f855cba3 src/Orchard.Web/Modules/Orchard.Rules
65057c6a5cd71f7994ba9bcbeece50dbb737620e src/Orchard.Web/Modules/Orchard.TaskLease
9496e39d3bab7655114d8dfc75290954856ec567 src/Orchard.Web/Modules/Orchard.Tokens

View File

@@ -4,7 +4,14 @@ Author: The Orchard Team
Website: http://orchardproject.net
Version: 1.3.0
OrchardVersion: 1.3.0
Features:
Orchard.Tags:
Name: Tags
Description: The tags module is providing basic tagging for arbitrary content types.
FeatureDescription: Tag a content item.
Dependencies: Settings
Category: Navigation
Orchard.Tags.Projections:
Name: Tags Projections
Description: Projections for the Tags module
Category: Projections
Dependencies: Orchard.Tags, Orchard.Projections

View File

@@ -18,6 +18,7 @@
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<TargetFrameworkProfile />
<UseIISExpress>false</UseIISExpress>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -56,6 +57,7 @@
<Compile Include="Migrations.cs" />
<Compile Include="Models\ContentTagRecord.cs" />
<Compile Include="Models\TagsPartRecord.cs" />
<Compile Include="Projections\TagsFilter.cs" />
<Compile Include="ResourceManifest.cs" />
<Compile Include="Services\ITagService.cs" />
<Compile Include="Services\XmlRpcHandler.cs" />

View File

@@ -283,6 +283,11 @@ namespace Orchard.ContentManagement {
return this;
}
public IExpressionFactory WithRelationship(string path) {
Criteria = _query.BindCriteriaByPath(Criteria, path);
return this;
}
public IExpressionFactory WithVersionRecord(string path) {
Criteria = _query.BindCriteriaByPath(_query.BindItemVersionCriteria(), path);
return this;

View File

@@ -6,6 +6,7 @@ namespace Orchard.ContentManagement {
public interface IExpressionFactory {
IExpressionFactory WithRecord(string recordName);
IExpressionFactory WithVersionRecord(string recordName);
IExpressionFactory WithRelationship(string propertyName);
void Eq(string propertyName, object value);
void Like(string propertyName, object value);