Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Jun 3, 2019
1 parent 718745d commit bf6264a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageIconUrl>https://raw.githubusercontent.com/Squidex/squidex/master/media/logo-squared.png</PackageIconUrl>
<PackageLicense>https://github.com/Squidex/squidex/blob/master/LICENSE.txt</PackageLicense>
<PackageProjectUrl>https://github.com/Squidex/squidex/</PackageProjectUrl>
<Version>2.8</Version>
<Version>2.9</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public async Task<SquidexEntities<TEntity, TData>> GetAsync(long? skip = null, l

if (!string.IsNullOrWhiteSpace(search))
{
queries.Add($"$search={search}");
queries.Add($"$search=\"{search}\"");
}
else if (!string.IsNullOrWhiteSpace(filter))
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================

using System.Threading.Tasks;

namespace Squidex.ClientLibrary
{
public static class SquidexClientExtensions
{
public static async Task<SquidexEntities<TEntity, TData>> GetAllAsync<TEntity, TData>(
this SquidexClient<TEntity, TData> client,
int batchSize = 200)
public static async Task<SquidexEntities<TEntity, TData>> GetAllAsync<TEntity, TData>(this SquidexClient<TEntity, TData> client, int batchSize = 200)
where TEntity : SquidexEntityBase<TData>
where TData : class, new()
{
Guard.NotNull(client, nameof(client));

int skip = 0;
var skip = 0;
var entities = new SquidexEntities<TEntity, TData>();
do
{
Expand All @@ -30,9 +33,7 @@ public static async Task<SquidexEntities<TEntity, TData>> GetAllAsync<TEntity, T

public static async Task<AssetEntities> GetAllAssetsAsync(this SquidexAssetClient assetClient, int batchSize = 200)
{
Guard.NotNull(assetClient, nameof(assetClient));

int skip = 0;
var skip = 0;
var entities = new AssetEntities();
do
{
Expand Down

0 comments on commit bf6264a

Please sign in to comment.