Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "修改bug" #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Src/Libraries/NextCMS.Services/Catalog/ArticleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ArticleService(IRepository<Article> articleRepository, IRepository<Tag> t
/// <param name="pageSize">每页个数</param>
public virtual IPagedList<Article> GetAllArticle(string title = null, int categoryId = 0, int tagId = 0, bool showHidden = false, int pageIndex = 0, int pageSize = int.MaxValue)
{
var query = _articleRepository.Table;
var query = _articleRepository.Table.Where(t => t.Published);

if (!string.IsNullOrEmpty(title))
query = query.Where(t => t.Title.ToLower().Contains(title.ToLower()));
Expand All @@ -72,7 +72,7 @@ public virtual IPagedList<Article> GetAllArticle(string title = null, int catego
/// <param name="tagId">标签</param>
public virtual IQueryable<Article> GetAllArticle(string title = null, int categoryId = 0, int tagId = 0)
{
var query = _articleRepository.Table.Where(t => t.Published);
var query = _articleRepository.Table;

if (!string.IsNullOrEmpty(title))
query = query.Where(t => t.Title.ToLower().Contains(title.ToLower()));
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1,592 changes: 1,592 additions & 0 deletions Src/packages/AutoMapper.3.2.1/lib/MonoAndroid/AutoMapper.xml

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,592 changes: 1,592 additions & 0 deletions Src/packages/AutoMapper.3.2.1/lib/MonoTouch/AutoMapper.xml

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,592 changes: 1,592 additions & 0 deletions Src/packages/AutoMapper.3.2.1/lib/net40/AutoMapper.xml

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,592 changes: 1,592 additions & 0 deletions Src/packages/AutoMapper.3.2.1/lib/sl5/AutoMapper.xml

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,592 changes: 1,592 additions & 0 deletions Src/packages/AutoMapper.3.2.1/lib/windows8/AutoMapper.xml

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,592 changes: 1,592 additions & 0 deletions Src/packages/AutoMapper.3.2.1/lib/wp8/AutoMapper.xml

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1,592 changes: 1,592 additions & 0 deletions Src/packages/AutoMapper.3.2.1/lib/wpa81/AutoMapper.xml

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/AutoMapper.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Build sequence modification -->
<Target Name="CopyAutoMapperAssembly"
AfterTargets="ResolveAssemblyReferences">
<CreateItem Include="%(ReferencePath.FullPath)"
Condition="$([System.String]::new('%(ReferencePath.Filename)').StartsWith('AutoMapper.'))">
<Output TaskParameter="Include"
ItemName="_AutoMapperReference"/>
</CreateItem>

<Message Importance="low" Text="AutoMapper Platform Extension Assembly: %(_AutoMapperReference.FullPath)"/>

<ItemGroup>
<Content Include="$([MSBuild]::MakeRelative($(MSBuildProjectDirectory), %(_AutoMapperReference.FullPath)))" Condition="'%(_AutoMapperReference.FullPath)' != ''">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Target>
</Project>
20 changes: 20 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/MonoAndroid/Install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
param($installPath, $toolsPath, $package, $project)
# This is the MSBuild targets file to add
$targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets')

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Make the path to the targets file relative.
$projectUri = new-object Uri($project.FullName, [System.UriKind]::Absolute)
$targetUri = new-object Uri($targetsFile, [System.UriKind]::Absolute)
$relativePath = [System.Uri]::UnescapeDataString($projectUri.MakeRelativeUri($targetUri).ToString()).Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar)

# Add the import with a condition, to allow the project to load without the targets present.
$import = $msbuild.Xml.AddImport($relativePath)
$import.Condition = "Exists('$relativePath')"

$project.Save()
24 changes: 24 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/MonoAndroid/uninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
param($installPath, $toolsPath, $package, $project)

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Find all the imports and targets added by this package.
$itemsToRemove = @()

# Allow many in case a past package was incorrectly uninstalled
$itemsToRemove += $msbuild.Xml.Imports | Where-Object { $_.Project.EndsWith($package.Id + '.targets') }

# Remove the elements and save the project
if ($itemsToRemove -and $itemsToRemove.length)
{
foreach ($itemToRemove in $itemsToRemove)
{
$msbuild.Xml.RemoveChild($itemToRemove) | out-null
}

$project.Save()
}
20 changes: 20 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/MonoTouch/Install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
param($installPath, $toolsPath, $package, $project)
# This is the MSBuild targets file to add
$targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets')

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Make the path to the targets file relative.
$projectUri = new-object Uri($project.FullName, [System.UriKind]::Absolute)
$targetUri = new-object Uri($targetsFile, [System.UriKind]::Absolute)
$relativePath = [System.Uri]::UnescapeDataString($projectUri.MakeRelativeUri($targetUri).ToString()).Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar)

# Add the import with a condition, to allow the project to load without the targets present.
$import = $msbuild.Xml.AddImport($relativePath)
$import.Condition = "Exists('$relativePath')"

$project.Save()
24 changes: 24 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/MonoTouch/uninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
param($installPath, $toolsPath, $package, $project)

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Find all the imports and targets added by this package.
$itemsToRemove = @()

# Allow many in case a past package was incorrectly uninstalled
$itemsToRemove += $msbuild.Xml.Imports | Where-Object { $_.Project.EndsWith($package.Id + '.targets') }

# Remove the elements and save the project
if ($itemsToRemove -and $itemsToRemove.length)
{
foreach ($itemToRemove in $itemsToRemove)
{
$msbuild.Xml.RemoveChild($itemToRemove) | out-null
}

$project.Save()
}
20 changes: 20 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/net40/Install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
param($installPath, $toolsPath, $package, $project)
# This is the MSBuild targets file to add
$targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets')

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Make the path to the targets file relative.
$projectUri = new-object Uri($project.FullName, [System.UriKind]::Absolute)
$targetUri = new-object Uri($targetsFile, [System.UriKind]::Absolute)
$relativePath = [System.Uri]::UnescapeDataString($projectUri.MakeRelativeUri($targetUri).ToString()).Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar)

# Add the import with a condition, to allow the project to load without the targets present.
$import = $msbuild.Xml.AddImport($relativePath)
$import.Condition = "Exists('$relativePath')"

$project.Save()
24 changes: 24 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/net40/uninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
param($installPath, $toolsPath, $package, $project)

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Find all the imports and targets added by this package.
$itemsToRemove = @()

# Allow many in case a past package was incorrectly uninstalled
$itemsToRemove += $msbuild.Xml.Imports | Where-Object { $_.Project.EndsWith($package.Id + '.targets') }

# Remove the elements and save the project
if ($itemsToRemove -and $itemsToRemove.length)
{
foreach ($itemToRemove in $itemsToRemove)
{
$msbuild.Xml.RemoveChild($itemToRemove) | out-null
}

$project.Save()
}
20 changes: 20 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/sl5/Install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
param($installPath, $toolsPath, $package, $project)
# This is the MSBuild targets file to add
$targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets')

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Make the path to the targets file relative.
$projectUri = new-object Uri($project.FullName, [System.UriKind]::Absolute)
$targetUri = new-object Uri($targetsFile, [System.UriKind]::Absolute)
$relativePath = [System.Uri]::UnescapeDataString($projectUri.MakeRelativeUri($targetUri).ToString()).Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar)

# Add the import with a condition, to allow the project to load without the targets present.
$import = $msbuild.Xml.AddImport($relativePath)
$import.Condition = "Exists('$relativePath')"

$project.Save()
24 changes: 24 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/sl5/uninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
param($installPath, $toolsPath, $package, $project)

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Find all the imports and targets added by this package.
$itemsToRemove = @()

# Allow many in case a past package was incorrectly uninstalled
$itemsToRemove += $msbuild.Xml.Imports | Where-Object { $_.Project.EndsWith($package.Id + '.targets') }

# Remove the elements and save the project
if ($itemsToRemove -and $itemsToRemove.length)
{
foreach ($itemToRemove in $itemsToRemove)
{
$msbuild.Xml.RemoveChild($itemToRemove) | out-null
}

$project.Save()
}
20 changes: 20 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/windows8/Install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
param($installPath, $toolsPath, $package, $project)
# This is the MSBuild targets file to add
$targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets')

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Make the path to the targets file relative.
$projectUri = new-object Uri($project.FullName, [System.UriKind]::Absolute)
$targetUri = new-object Uri($targetsFile, [System.UriKind]::Absolute)
$relativePath = [System.Uri]::UnescapeDataString($projectUri.MakeRelativeUri($targetUri).ToString()).Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar)

# Add the import with a condition, to allow the project to load without the targets present.
$import = $msbuild.Xml.AddImport($relativePath)
$import.Condition = "Exists('$relativePath')"

$project.Save()
24 changes: 24 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/windows8/uninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
param($installPath, $toolsPath, $package, $project)

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Find all the imports and targets added by this package.
$itemsToRemove = @()

# Allow many in case a past package was incorrectly uninstalled
$itemsToRemove += $msbuild.Xml.Imports | Where-Object { $_.Project.EndsWith($package.Id + '.targets') }

# Remove the elements and save the project
if ($itemsToRemove -and $itemsToRemove.length)
{
foreach ($itemToRemove in $itemsToRemove)
{
$msbuild.Xml.RemoveChild($itemToRemove) | out-null
}

$project.Save()
}
20 changes: 20 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/wp8/Install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
param($installPath, $toolsPath, $package, $project)
# This is the MSBuild targets file to add
$targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets')

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Make the path to the targets file relative.
$projectUri = new-object Uri($project.FullName, [System.UriKind]::Absolute)
$targetUri = new-object Uri($targetsFile, [System.UriKind]::Absolute)
$relativePath = [System.Uri]::UnescapeDataString($projectUri.MakeRelativeUri($targetUri).ToString()).Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar)

# Add the import with a condition, to allow the project to load without the targets present.
$import = $msbuild.Xml.AddImport($relativePath)
$import.Condition = "Exists('$relativePath')"

$project.Save()
24 changes: 24 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/wp8/uninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
param($installPath, $toolsPath, $package, $project)

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Find all the imports and targets added by this package.
$itemsToRemove = @()

# Allow many in case a past package was incorrectly uninstalled
$itemsToRemove += $msbuild.Xml.Imports | Where-Object { $_.Project.EndsWith($package.Id + '.targets') }

# Remove the elements and save the project
if ($itemsToRemove -and $itemsToRemove.length)
{
foreach ($itemToRemove in $itemsToRemove)
{
$msbuild.Xml.RemoveChild($itemToRemove) | out-null
}

$project.Save()
}
20 changes: 20 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/wpa81/Install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
param($installPath, $toolsPath, $package, $project)
# This is the MSBuild targets file to add
$targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets')

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Make the path to the targets file relative.
$projectUri = new-object Uri($project.FullName, [System.UriKind]::Absolute)
$targetUri = new-object Uri($targetsFile, [System.UriKind]::Absolute)
$relativePath = [System.Uri]::UnescapeDataString($projectUri.MakeRelativeUri($targetUri).ToString()).Replace([System.IO.Path]::AltDirectorySeparatorChar, [System.IO.Path]::DirectorySeparatorChar)

# Add the import with a condition, to allow the project to load without the targets present.
$import = $msbuild.Xml.AddImport($relativePath)
$import.Condition = "Exists('$relativePath')"

$project.Save()
24 changes: 24 additions & 0 deletions Src/packages/AutoMapper.3.2.1/tools/wpa81/uninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
param($installPath, $toolsPath, $package, $project)

# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1

# Find all the imports and targets added by this package.
$itemsToRemove = @()

# Allow many in case a past package was incorrectly uninstalled
$itemsToRemove += $msbuild.Xml.Imports | Where-Object { $_.Project.EndsWith($package.Id + '.targets') }

# Remove the elements and save the project
if ($itemsToRemove -and $itemsToRemove.length)
{
foreach ($itemToRemove in $itemsToRemove)
{
$msbuild.Xml.RemoveChild($itemToRemove) | out-null
}

$project.Save()
}
Binary file added Src/packages/Autofac.3.5.2/Autofac.3.5.2.nupkg
Binary file not shown.
Binary file added Src/packages/Autofac.3.5.2/lib/net40/Autofac.dll
Binary file not shown.
Loading