mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-28 09:22:55 +08:00
Adding filters to Orchard.Projections
--HG-- branch : 1.x
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
d0cf85644ff34b0630a12eed746a66a8d88eb5cf src/Orchard.Web/Modules/Orchard.Forms
|
d0cf85644ff34b0630a12eed746a66a8d88eb5cf src/Orchard.Web/Modules/Orchard.Forms
|
||||||
8413a416e232ac2c90520de8ff07622ba30561db src/Orchard.Web/Modules/Orchard.Projections
|
b571876d276f9022c12b8b464d5e138f5ce06c14 src/Orchard.Web/Modules/Orchard.Projections
|
||||||
3d11da7572a1107aad47b8a9eb4dbb1e7553b18b src/Orchard.Web/Modules/Orchard.Rules
|
108ae2f95c8bf9bf0d4d06d0e31b5b77f855cba3 src/Orchard.Web/Modules/Orchard.Rules
|
||||||
65057c6a5cd71f7994ba9bcbeece50dbb737620e src/Orchard.Web/Modules/Orchard.TaskLease
|
65057c6a5cd71f7994ba9bcbeece50dbb737620e src/Orchard.Web/Modules/Orchard.TaskLease
|
||||||
9496e39d3bab7655114d8dfc75290954856ec567 src/Orchard.Web/Modules/Orchard.Tokens
|
9496e39d3bab7655114d8dfc75290954856ec567 src/Orchard.Web/Modules/Orchard.Tokens
|
||||||
|
|||||||
@@ -4,7 +4,14 @@ Author: The Orchard Team
|
|||||||
Website: http://orchardproject.net
|
Website: http://orchardproject.net
|
||||||
Version: 1.3.0
|
Version: 1.3.0
|
||||||
OrchardVersion: 1.3.0
|
OrchardVersion: 1.3.0
|
||||||
Description: The tags module is providing basic tagging for arbitrary content types.
|
Features:
|
||||||
FeatureDescription: Tag a content item.
|
Orchard.Tags:
|
||||||
Dependencies: Settings
|
Name: Tags
|
||||||
Category: Navigation
|
Description: The tags module is providing basic tagging for arbitrary content types.
|
||||||
|
Dependencies: Settings
|
||||||
|
Category: Navigation
|
||||||
|
Orchard.Tags.Projections:
|
||||||
|
Name: Tags Projections
|
||||||
|
Description: Projections for the Tags module
|
||||||
|
Category: Projections
|
||||||
|
Dependencies: Orchard.Tags, Orchard.Projections
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
<OldToolsVersion>3.5</OldToolsVersion>
|
<OldToolsVersion>3.5</OldToolsVersion>
|
||||||
<UpgradeBackupLocation />
|
<UpgradeBackupLocation />
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
|
<UseIISExpress>false</UseIISExpress>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
@@ -56,6 +57,7 @@
|
|||||||
<Compile Include="Migrations.cs" />
|
<Compile Include="Migrations.cs" />
|
||||||
<Compile Include="Models\ContentTagRecord.cs" />
|
<Compile Include="Models\ContentTagRecord.cs" />
|
||||||
<Compile Include="Models\TagsPartRecord.cs" />
|
<Compile Include="Models\TagsPartRecord.cs" />
|
||||||
|
<Compile Include="Projections\TagsFilter.cs" />
|
||||||
<Compile Include="ResourceManifest.cs" />
|
<Compile Include="ResourceManifest.cs" />
|
||||||
<Compile Include="Services\ITagService.cs" />
|
<Compile Include="Services\ITagService.cs" />
|
||||||
<Compile Include="Services\XmlRpcHandler.cs" />
|
<Compile Include="Services\XmlRpcHandler.cs" />
|
||||||
|
|||||||
@@ -283,6 +283,11 @@ namespace Orchard.ContentManagement {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IExpressionFactory WithRelationship(string path) {
|
||||||
|
Criteria = _query.BindCriteriaByPath(Criteria, path);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public IExpressionFactory WithVersionRecord(string path) {
|
public IExpressionFactory WithVersionRecord(string path) {
|
||||||
Criteria = _query.BindCriteriaByPath(_query.BindItemVersionCriteria(), path);
|
Criteria = _query.BindCriteriaByPath(_query.BindItemVersionCriteria(), path);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ namespace Orchard.ContentManagement {
|
|||||||
public interface IExpressionFactory {
|
public interface IExpressionFactory {
|
||||||
IExpressionFactory WithRecord(string recordName);
|
IExpressionFactory WithRecord(string recordName);
|
||||||
IExpressionFactory WithVersionRecord(string recordName);
|
IExpressionFactory WithVersionRecord(string recordName);
|
||||||
|
IExpressionFactory WithRelationship(string propertyName);
|
||||||
|
|
||||||
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