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
4 changes: 4 additions & 0 deletions Specification/src/Ardalis.Specification/ISpecification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ namespace Ardalis.Specification
/// <typeparam name="TResult">The type of the result.</typeparam>
public interface ISpecification<T, TResult> : ISpecification<T>
{
ISpecificationBuilder<T, TResult> Query { get; }

/// <summary>
/// The transform function to apply to the <typeparamref name="T"/> element.
/// </summary>
Expand All @@ -31,6 +33,8 @@ public interface ISpecification<T, TResult> : ISpecification<T>
/// <typeparam name="T">The type being queried against.</typeparam>
public interface ISpecification<T>
{
ISpecificationBuilder<T> Query { get; }

/// <summary>
/// The collection of filters.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions Specification/src/Ardalis.Specification/Specification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Ardalis.Specification
/// <inheritdoc cref="ISpecification{T, TResult}"/>
public abstract class Specification<T, TResult> : Specification<T>, ISpecification<T, TResult>
{
protected new virtual ISpecificationBuilder<T, TResult> Query { get; }
public new virtual ISpecificationBuilder<T, TResult> Query { get; }

protected Specification()
: this(InMemorySpecificationEvaluator.Default)
Expand Down Expand Up @@ -37,7 +37,7 @@ public abstract class Specification<T> : ISpecification<T>
{
protected IInMemorySpecificationEvaluator Evaluator { get; }
protected ISpecificationValidator Validator { get; }
protected virtual ISpecificationBuilder<T> Query { get; }
public virtual ISpecificationBuilder<T> Query { get; }

protected Specification()
: this(InMemorySpecificationEvaluator.Default, SpecificationValidator.Default)
Expand Down