Skip to content
Merged
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
7 changes: 6 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
</PropertyGroup>
<PropertyGroup>
<SearchesVer>0.8.0</SearchesVer>
<SearchesPreview>-preview-1</SearchesPreview>
<SearchesPreview></SearchesPreview>
</PropertyGroup>
<PropertyGroup>
<DotNetCoreVersion Condition="'$(TargetFramework)' == 'net8'">8.0.2</DotNetCoreVersion>
<DotNetCoreVersion Condition="'$(TargetFramework)' == 'net9'">9.0.5</DotNetCoreVersion>
</PropertyGroup>
<PropertyGroup>
<PropSelVer>1.0.2</PropSelVer>
<OpHintVer>1.0.0</OpHintVer>
<ProblemsVer>1.0.0-preview-4.3</ProblemsVer>
</PropertyGroup>
</Project>
180 changes: 0 additions & 180 deletions src/RoyalCode.SmartSearch.Abstractions/AllEntitiesExtensions.cs

This file was deleted.

10 changes: 8 additions & 2 deletions src/RoyalCode.SmartSearch.Abstractions/AsyncResultList.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text.Json.Serialization;

namespace RoyalCode.SmartSearch.Abstractions;
namespace RoyalCode.SmartSearch;

/// <summary>
/// <para>
Expand All @@ -22,9 +22,15 @@ public sealed class AsyncResultList<TModel> : IAsyncResultList<TModel>
/// <inheritdoc />
public int Pages { get; init; }

/// <inheritdoc />
public int Skipped { get; init; }

/// <inheritdoc />
public int Taken { get; init; }

/// <inheritdoc />
[JsonConverter(typeof(SortingsConverter))]
public IEnumerable<ISorting> Sortings { get; init; } = null!;
public IReadOnlyList<ISorting> Sortings { get; init; } = null!;

/// <inheritdoc />
public Dictionary<string, object> Projections { get; init; } = null!;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RoyalCode.SmartSearch.Abstractions;
namespace RoyalCode.SmartSearch;

/// <summary>
/// <para>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RoyalCode.SmartSearch.Abstractions;
namespace RoyalCode.SmartSearch;

/// <summary>
/// <para>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
namespace RoyalCode.SmartSearch.Exceptions;

/// <summary>
/// Exception thrown when an error occurs related to the sorting of results in a query.
/// </summary>
/// <param name="message">Message about the sorting property with problems.</param>
/// <param name="propertyName">The name of the property that caused the sorting error.</param>
/// <param name="typeName">The type of data to be filtered and sorted.</param>
/// <param name="inner">Internal exception that caused the problem.</param>
public sealed class OrderByException(string message, string propertyName, string typeName, Exception inner)
: Exception(message, inner)
{
/// <summary>
/// The name of the property that caused the sorting error.
/// </summary>
public string PropertyName { get; } = propertyName;

/// <summary>
/// The type of data to be filtered and sorted.
/// </summary>
public string TypeName { get; } = typeName;
}
Loading
Loading