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
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0.301",
"version": "6.0.400",
"allowPrerelease": false,
"rollForward": "disable"
}
Expand Down
18 changes: 0 additions & 18 deletions src/EntityDb.Abstractions/Entities/IEntityRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using EntityDb.Abstractions.Snapshots;
using EntityDb.Abstractions.Transactions;
using EntityDb.Abstractions.ValueObjects;
using System.Diagnostics.CodeAnalysis;

namespace EntityDb.Abstractions.Entities;

Expand All @@ -22,23 +21,6 @@ public interface IEntityRepository<TEntity> : IDisposableResource
/// </summary>
ISnapshotRepository<TEntity>? SnapshotRepository { get; }

/// <ignore />
[Obsolete("Please use GetSnapshot(...) instead. This method will be removed at a later date.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
public Task<TEntity> GetCurrent(Id entityId, CancellationToken cancellationToken = default)
{
return GetSnapshot(entityId, cancellationToken);
}

/// <ignore />
[Obsolete("Please use GetSnapshot(...) instead. This method will be removed at a later date.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
Task<TEntity> GetAtVersion(Id entityId, VersionNumber lteVersionNumber,
CancellationToken cancellationToken = default)
{
return GetSnapshot(entityId + lteVersionNumber, cancellationToken);
}

/// <summary>
/// Returns the snapshot of a <typeparamref name="TEntity" /> for a given <see cref="Pointer" />.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using EntityDb.Abstractions.Snapshots;
using EntityDb.Abstractions.Transactions;
using EntityDb.Abstractions.ValueObjects;
using System.Diagnostics.CodeAnalysis;

namespace EntityDb.Abstractions.Projections;

Expand All @@ -22,14 +21,6 @@ public interface IProjectionRepository<TProjection> : IDisposableResource
/// </summary>
ISnapshotRepository<TProjection>? SnapshotRepository { get; }

/// <ignore />
[Obsolete("Please use GetSnapshot(...) instead. This method will be removed at a later date.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
public Task<TProjection> GetCurrent(Id projectionId, CancellationToken cancellationToken = default)
{
return GetSnapshot(projectionId, cancellationToken);
}

/// <summary>
/// Returns the snapshot of a <typeparamref name="TProjection" /> for a given <see cref="Pointer" />.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using EntityDb.Abstractions.ValueObjects;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;

namespace EntityDb.Abstractions.Queries.FilterBuilders;

Expand All @@ -10,12 +8,6 @@ namespace EntityDb.Abstractions.Queries.FilterBuilders;
/// <typeparam name="TFilter">The type of filter used by the repository.</typeparam>
public interface IAgentSignatureFilterBuilder<TFilter> : IFilterBuilder<TFilter>
{
/// <ignore/>
[Obsolete("This method will be removed in the future, and may not be supported for all implementations.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
TFilter AgentSignatureMatches<TAgentSignature>(Expression<Func<TAgentSignature, bool>> agentSignatureExpression)
=> throw new NotSupportedException();

/// <summary>
/// Returns a <typeparamref name="TFilter" /> that only includes agentSignatures with any entity id which is contained
/// in a set
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using EntityDb.Abstractions.ValueObjects;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;

namespace EntityDb.Abstractions.Queries.FilterBuilders;

Expand All @@ -10,12 +8,6 @@ namespace EntityDb.Abstractions.Queries.FilterBuilders;
/// <typeparam name="TFilter">The type of filter used by the repository.</typeparam>
public interface ICommandFilterBuilder<TFilter> : IFilterBuilder<TFilter>
{
/// <ignore/>
[Obsolete("This method will be removed in the future, and may not be supported for all implementations.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
TFilter CommandMatches<TCommand>(Expression<Func<TCommand, bool>> commandExpression)
=> throw new NotSupportedException();

/// <summary>
/// Returns a <typeparamref name="TFilter" /> that only includes commands with an entity id which is contained in a set
/// of entity ids.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using EntityDb.Abstractions.Leases;
using EntityDb.Abstractions.ValueObjects;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;

namespace EntityDb.Abstractions.Queries.FilterBuilders;

Expand All @@ -11,12 +9,6 @@ namespace EntityDb.Abstractions.Queries.FilterBuilders;
/// <typeparam name="TFilter">The type of filter used by the repository.</typeparam>
public interface ILeaseFilterBuilder<TFilter> : IFilterBuilder<TFilter>
{
/// <ignore/>
[Obsolete("This method will be removed in the future.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
TFilter LeaseMatches<TLease>(Expression<Func<TLease, bool>> leaseExpression)
=> throw new NotSupportedException();

/// <summary>
/// Returns a <typeparamref name="TFilter" /> that only includes leases with an entity id which is contained in a set
/// of entity ids.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using EntityDb.Abstractions.Tags;
using EntityDb.Abstractions.ValueObjects;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;

namespace EntityDb.Abstractions.Queries.FilterBuilders;

Expand All @@ -11,12 +9,6 @@ namespace EntityDb.Abstractions.Queries.FilterBuilders;
/// <typeparam name="TFilter">The type of filter used by the repository.</typeparam>
public interface ITagFilterBuilder<TFilter> : IFilterBuilder<TFilter>
{
/// <ignore/>
[Obsolete("This method will be removed in the future, and may not be supported for all implementations.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
TFilter TagMatches<TTag>(Expression<Func<TTag, bool>> tagExpression)
=> throw new NotSupportedException();

/// <summary>
/// Returns a <typeparamref name="TFilter" /> that only includes tags with an entity id which is contained in a set of
/// entity ids.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;

namespace EntityDb.Abstractions.Queries.SortBuilders;
namespace EntityDb.Abstractions.Queries.SortBuilders;

/// <summary>
/// Builds a <typeparamref name="TSort" /> for a agentSignature query.
/// </summary>
/// <typeparam name="TSort">The type of sort used by the repository.</typeparam>
public interface IAgentSignatureSortBuilder<TSort> : ISortBuilder<TSort>
{
/// <ignore/>
[Obsolete("This method will be removed in the future, and may not be supported for all implementations.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
TSort AgentSignatureProperty<TAgentSignature>(bool ascending,
Expression<Func<TAgentSignature, object>> agentSignatureExpression)
=> throw new NotSupportedException();

/// <summary>
/// Returns a <typeparamref name="TSort" /> that orders agentSignatures by entity ids.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;

namespace EntityDb.Abstractions.Queries.SortBuilders;
namespace EntityDb.Abstractions.Queries.SortBuilders;

/// <summary>
/// Builds a <typeparamref name="TSort" /> for a command query.
/// </summary>
/// <typeparam name="TSort">The type of sort used by the repository.</typeparam>
public interface ICommandSortBuilder<TSort> : ISortBuilder<TSort>
{
/// <ignore/>
[Obsolete("This method will be removed in the future, and may not be supported for all implementations.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
TSort CommandProperty<TCommand>(bool ascending, Expression<Func<TCommand, object>> commandExpression)
=> throw new NotSupportedException();

/// <summary>
/// Returns a <typeparamref name="TSort" /> that orders commands by entity id.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using EntityDb.Abstractions.Leases;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;

namespace EntityDb.Abstractions.Queries.SortBuilders;

Expand All @@ -10,12 +8,6 @@ namespace EntityDb.Abstractions.Queries.SortBuilders;
/// <typeparam name="TSort">The type of sort used by the repository.</typeparam>
public interface ILeaseSortBuilder<TSort> : ISortBuilder<TSort>
{
/// <ignore/>
[Obsolete("This method will be removed in the future, and may not be supported for all implementations.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
TSort LeaseProperty<TLease>(bool ascending, Expression<Func<TLease, object>> leaseExpression)
=> throw new NotSupportedException();

/// <summary>
/// Returns a <typeparamref name="TSort" /> that orders leases by entity id.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using EntityDb.Abstractions.Tags;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;

namespace EntityDb.Abstractions.Queries.SortBuilders;

Expand All @@ -10,12 +8,6 @@ namespace EntityDb.Abstractions.Queries.SortBuilders;
/// <typeparam name="TSort">The type of sort used by the repository.</typeparam>
public interface ITagSortBuilder<TSort> : ISortBuilder<TSort>
{
/// <ignore/>
[Obsolete("This method will be removed in the future, and may not be supported for all implementations.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
TSort TagProperty<TTag>(bool ascending, Expression<Func<TTag, object>> tagExpression)
=> throw new NotSupportedException();

/// <summary>
/// Returns a <typeparamref name="TSort" /> that orders tags by entity id.
/// </summary>
Expand Down
9 changes: 0 additions & 9 deletions src/EntityDb.Abstractions/Snapshots/ISnapshotRepository.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using EntityDb.Abstractions.Disposables;
using EntityDb.Abstractions.ValueObjects;
using System.Diagnostics.CodeAnalysis;

namespace EntityDb.Abstractions.Snapshots;

Expand All @@ -10,14 +9,6 @@ namespace EntityDb.Abstractions.Snapshots;
/// <typeparam name="TSnapshot">The type of snapshot stored in the <see cref="ISnapshotRepository{TSnapshot}" />.</typeparam>
public interface ISnapshotRepository<TSnapshot> : IDisposableResource
{
/// <ignore />
[Obsolete("Please use GetSnapshotOrDefault(...) instead. This method will be removed at a later date.")]
[ExcludeFromCodeCoverage(Justification = "Obsolete")]
public Task<TSnapshot?> GetSnapshot(Id snapshotId, CancellationToken cancellationToken = default)
{
return GetSnapshotOrDefault(snapshotId, cancellationToken);
}

/// <summary>
/// Returns an exact version of snapshot of a <typeparamref name="TSnapshot" /> or
/// <c>default(<typeparamref name="TSnapshot" />)</c>.
Expand Down
Loading