@@ -14,7 +14,7 @@ public interface IReadRepositoryBase<T> where T : class
14
14
/// </summary>
15
15
/// <typeparam name="TId">The type of primary key.</typeparam>
16
16
/// <param name="id">The value of the primary key for the entity to be found.</param>
17
- /// <param name="cancellationToken"></param>
17
+ /// <param name="cancellationToken">The cancellation token. </param>
18
18
/// <returns>
19
19
/// A task that represents the asynchronous operation.
20
20
/// The task result contains the <typeparamref name="T" />, or <see langword="null"/>.
@@ -25,7 +25,7 @@ public interface IReadRepositoryBase<T> where T : class
25
25
/// Returns the first element of a sequence, or a default value if the sequence contains no elements.
26
26
/// </summary>
27
27
/// <param name="specification">The encapsulated query logic.</param>
28
- /// <param name="cancellationToken">A <see cref="CancellationToken" /> to observe while waiting for the task to complete .</param>
28
+ /// <param name="cancellationToken">The cancellation token .</param>
29
29
/// <returns>
30
30
/// A task that represents the asynchronous operation.
31
31
/// The task result contains the <typeparamref name="T" />, or <see langword="null"/>.
@@ -36,7 +36,7 @@ public interface IReadRepositoryBase<T> where T : class
36
36
/// Returns the first element of a sequence, or a default value if the sequence contains no elements.
37
37
/// </summary>
38
38
/// <param name="specification">The encapsulated query logic.</param>
39
- /// <param name="cancellationToken">A <see cref="CancellationToken" /> to observe while waiting for the task to complete .</param>
39
+ /// <param name="cancellationToken">The cancellation token .</param>
40
40
/// <returns>
41
41
/// A task that represents the asynchronous operation.
42
42
/// The task result contains the <typeparamref name="TResult" />, or <see langword="null"/>.
@@ -47,7 +47,7 @@ public interface IReadRepositoryBase<T> where T : class
47
47
/// Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
48
48
/// </summary>
49
49
/// <param name="specification">The encapsulated query logic.</param>
50
- /// <param name="cancellationToken">A <see cref="CancellationToken" /> to observe while waiting for the task to complete .</param>
50
+ /// <param name="cancellationToken">The cancellation token .</param>
51
51
/// <returns>
52
52
/// A task that represents the asynchronous operation.
53
53
/// The task result contains the <typeparamref name="T" />, or <see langword="null"/>.
@@ -58,7 +58,7 @@ public interface IReadRepositoryBase<T> where T : class
58
58
/// Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
59
59
/// </summary>
60
60
/// <param name="specification">The encapsulated query logic.</param>
61
- /// <param name="cancellationToken">A <see cref="CancellationToken" /> to observe while waiting for the task to complete .</param>
61
+ /// <param name="cancellationToken">The cancellation token .</param>
62
62
/// <returns>
63
63
/// A task that represents the asynchronous operation.
64
64
/// The task result contains the <typeparamref name="TResult" />, or <see langword="null"/>.
@@ -68,6 +68,7 @@ public interface IReadRepositoryBase<T> where T : class
68
68
/// <summary>
69
69
/// Finds all entities of <typeparamref name="T" /> from the database.
70
70
/// </summary>
71
+ /// <param name="cancellationToken">The cancellation token.</param>
71
72
/// <returns>
72
73
/// A task that represents the asynchronous operation.
73
74
/// The task result contains a <see cref="List{T}" /> that contains elements from the input sequence.
@@ -79,6 +80,7 @@ public interface IReadRepositoryBase<T> where T : class
79
80
/// <paramref name="specification"/>, from the database.
80
81
/// </summary>
81
82
/// <param name="specification">The encapsulated query logic.</param>
83
+ /// <param name="cancellationToken">The cancellation token.</param>
82
84
/// <returns>
83
85
/// A task that represents the asynchronous operation.
84
86
/// The task result contains a <see cref="List{T}" /> that contains elements from the input sequence.
@@ -94,6 +96,7 @@ public interface IReadRepositoryBase<T> where T : class
94
96
/// </summary>
95
97
/// <typeparam name="TResult">The type of the value returned by the projection.</typeparam>
96
98
/// <param name="specification">The encapsulated query logic.</param>
99
+ /// <param name="cancellationToken">The cancellation token.</param>
97
100
/// <returns>
98
101
/// A task that represents the asynchronous operation.
99
102
/// The task result contains a <see cref="List{TResult}" /> that contains elements from the input sequence.
@@ -105,6 +108,7 @@ public interface IReadRepositoryBase<T> where T : class
105
108
/// of the <paramref name="specification"/>.
106
109
/// </summary>
107
110
/// <param name="specification">The encapsulated query logic.</param>
111
+ /// <param name="cancellationToken">The cancellation token.</param>
108
112
/// <returns>
109
113
/// A task that represents the asynchronous operation. The task result contains the
110
114
/// number of elements in the input sequence.
@@ -114,6 +118,7 @@ public interface IReadRepositoryBase<T> where T : class
114
118
/// <summary>
115
119
/// Returns the total number of records.
116
120
/// </summary>
121
+ /// <param name="cancellationToken">The cancellation token.</param>
117
122
/// <returns>
118
123
/// A task that represents the asynchronous operation. The task result contains the
119
124
/// number of elements in the input sequence.
@@ -125,6 +130,7 @@ public interface IReadRepositoryBase<T> where T : class
125
130
/// of the <paramref name="specification"/> or not.
126
131
/// </summary>
127
132
/// <param name="specification">The encapsulated query logic.</param>
133
+ /// <param name="cancellationToken">The cancellation token.</param>
128
134
/// <returns>
129
135
/// A task that represents the asynchronous operation. The task result contains true if the
130
136
/// source sequence contains any elements; otherwise, false.
@@ -134,14 +140,15 @@ public interface IReadRepositoryBase<T> where T : class
134
140
/// <summary>
135
141
/// Returns a boolean whether any entity exists or not.
136
142
/// </summary>
143
+ /// <param name="cancellationToken">The cancellation token.</param>
137
144
/// <returns>
138
145
/// A task that represents the asynchronous operation. The task result contains true if the
139
146
/// source sequence contains any elements; otherwise, false.
140
147
/// </returns>
141
148
Task < bool > AnyAsync ( CancellationToken cancellationToken = default ) ;
142
149
143
150
144
- #if NET6_0_OR_GREATER
151
+ #if NET8_0_OR_GREATER
145
152
/// <summary>
146
153
/// Finds all entities of <typeparamref name="T" />, that matches the encapsulated query logic of the
147
154
/// <paramref name="specification"/>, from the database.
0 commit comments