You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/YesSql.Abstractions/IIdGenerator.cs
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,6 @@ public interface IIdGenerator
20
20
/// Invoked when the underlying store is created.
21
21
/// </summary>
22
22
/// <param name="store">The store that this <see cref="IIdGenerator"/> instance is assigned to.</param>
23
-
[Obsolete($"Instead, utilize the {nameof(InitializeAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
24
23
TaskInitializeAsync(IStorestore);
25
24
26
25
/// <summary>
@@ -31,15 +30,13 @@ public interface IIdGenerator
31
30
/// <summary>
32
31
/// Initializes a document collection.
33
32
/// </summary>
34
-
[Obsolete($"Instead, utilize the {nameof(InitializeCollectionAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
/// <param name="collection">The name of the collection to generate the identifier for.</param>
41
39
/// <returns>A unique identifier</returns>
42
-
[Obsolete($"Instead, utilize the {nameof(GetNextIdAsync)} method. This current method is slated for removal in upcoming releases.")]
43
40
longGetNextId(stringcollection);
44
41
45
42
/// <summary>
@@ -55,7 +52,6 @@ public interface IIdGenerator
55
52
/// </summary>
56
53
/// <param name="collection">The name of the collection to generate the identifier for.</param>
57
54
/// <returns>A unique identifier</returns>
58
-
[Obsolete($"Instead, utilize the {nameof(GetNextIdAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
Copy file name to clipboardExpand all lines: src/YesSql.Abstractions/IQuery.cs
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,6 @@ public interface IQuery<T> where T : class
91
91
/// <summary>
92
92
/// Executes the query and returns the first result matching the constraints.
93
93
/// </summary>
94
-
[Obsolete($"Instead, utilize the {nameof(FirstOrDefaultAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
95
94
Task<T>FirstOrDefaultAsync();
96
95
97
96
/// <summary>
@@ -102,7 +101,6 @@ public interface IQuery<T> where T : class
102
101
/// <summary>
103
102
/// Executes the query and returns all documents matching the constraints.
104
103
/// </summary>
105
-
[Obsolete($"Instead, utilize the {nameof(ListAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
106
104
Task<IEnumerable<T>>ListAsync();
107
105
108
106
/// <summary>
@@ -113,7 +111,6 @@ public interface IQuery<T> where T : class
113
111
/// <summary>
114
112
/// Executes the query and returns all documents matching the constraints.
115
113
/// </summary>
116
-
[Obsolete($"Instead, utilize the {nameof(ToAsyncEnumerable)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
117
114
IAsyncEnumerable<T>ToAsyncEnumerable();
118
115
119
116
/// <summary>
@@ -124,7 +121,6 @@ public interface IQuery<T> where T : class
124
121
/// <summary>
125
122
/// Executes a that returns the number of documents matching the constraints.
126
123
/// </summary>
127
-
[Obsolete($"Instead, utilize the {nameof(CountAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
128
124
Task<int>CountAsync();
129
125
130
126
/// <summary>
@@ -214,7 +210,6 @@ public interface IQueryIndex<T> where T : IIndex
214
210
/// <summary>
215
211
/// Returns the first result only, if it exists.
216
212
/// </summary>
217
-
[Obsolete($"Instead, utilize the {nameof(FirstOrDefaultAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
218
213
Task<T>FirstOrDefaultAsync();
219
214
220
215
/// <summary>
@@ -225,7 +220,6 @@ public interface IQueryIndex<T> where T : IIndex
225
220
/// <summary>
226
221
/// Executes the query.
227
222
/// </summary>
228
-
[Obsolete($"Instead, utilize the {nameof(ListAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
229
223
Task<IEnumerable<T>>ListAsync();
230
224
231
225
/// <summary>
@@ -238,7 +232,6 @@ public interface IQueryIndex<T> where T : IIndex
238
232
/// Executes the query for asynchronous iteration.
239
233
/// </summary>
240
234
/// <returns></returns>
241
-
[Obsolete($"Instead, utilize the {nameof(ToAsyncEnumerable)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
242
235
IAsyncEnumerable<T>ToAsyncEnumerable();
243
236
244
237
/// <summary>
@@ -249,7 +242,6 @@ public interface IQueryIndex<T> where T : IIndex
249
242
/// <summary>
250
243
/// Returns the number of results only.
251
244
/// </summary>
252
-
[Obsolete($"Instead, utilize the {nameof(CountAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
Copy file name to clipboardExpand all lines: src/YesSql.Abstractions/ISession.cs
-11Lines changed: 0 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,6 @@ public interface ISession : IDisposable, IAsyncDisposable
20
20
/// <param name="obj">The entity to save.</param>
21
21
/// <param name="checkConcurrency">If true, a <see cref="ConcurrencyException"/> is thrown if the entity has been updated concurrently by another session.</param>
22
22
/// <param name="collection">The name of the collection to store the object in.</param>
23
-
[Obsolete($"Instead, utilize the {nameof(SaveAsync)} method. This current method is slated for removal in upcoming releases.")]
@@ -41,7 +40,6 @@ public interface ISession : IDisposable, IAsyncDisposable
41
40
/// <param name="obj">The entity to save.</param>
42
41
/// <param name="checkConcurrency">If true, a <see cref="ConcurrencyException"/> is thrown if the entity has been updated concurrently by another session.</param>
43
42
/// <param name="collection">The name of the collection to store the object in.</param>
44
-
[Obsolete($"Instead, utilize the {nameof(SaveAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
@@ -50,15 +48,13 @@ public interface ISession : IDisposable, IAsyncDisposable
50
48
/// </summary>
51
49
/// <param name="obj">The entity to save.</param>
52
50
/// <param name="checkConcurrency">If true, a <see cref="ConcurrencyException"/> is thrown if the entity has been updated concurrently by another session.</param>
53
-
[Obsolete($"Instead, utilize the {nameof(SaveAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
54
51
TaskSaveAsync(objectobj,boolcheckConcurrency);
55
52
56
53
/// <summary>
57
54
/// Saves a new or existing object to the store, and updates
58
55
/// the corresponding indexes.
59
56
/// </summary>
60
57
/// <param name="obj">The entity to save.</param>
61
-
[Obsolete($"Instead, utilize the {nameof(SaveAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
62
58
TaskSaveAsync(objectobj);
63
59
64
60
/// <summary>
@@ -115,14 +111,12 @@ public interface ISession : IDisposable, IAsyncDisposable
115
111
/// Loads objects by id.
116
112
/// </summary>
117
113
/// <returns>A collection of objects in the same order they were defined.</returns>
118
-
[Obsolete($"Instead, utilize the {nameof(GetAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
/// <returns>A collection of objects in the same order they were defined.</returns>
125
-
[Obsolete($"Instead, utilize the {nameof(GetAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
@@ -168,7 +162,6 @@ public interface ISession : IDisposable, IAsyncDisposable
168
162
/// This doesn't commit or dispose of the transaction. A call to <see cref="SaveChangesAsync(CancellationToken)"/>
169
163
/// is still necessary for the changes to be visible from other transactions.
170
164
/// </remarks>
171
-
[Obsolete($"Instead, utilize the {nameof(FlushAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
172
165
TaskFlushAsync();
173
166
174
167
/// <summary>
@@ -187,7 +180,6 @@ public interface ISession : IDisposable, IAsyncDisposable
187
180
/// Sessions are not automatically committed when disposed, and <see cref="SaveChangesAsync(CancellationToken)"/>
188
181
/// must be called before disposing the <see cref="ISession"/>
189
182
/// </remarks>
190
-
[Obsolete($"Instead, utilize the {nameof(SaveChangesAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
191
183
TaskSaveChangesAsync();
192
184
193
185
/// <summary>
@@ -198,7 +190,6 @@ public interface ISession : IDisposable, IAsyncDisposable
198
190
/// <summary>
199
191
/// Creates or returns a <see cref="DbConnection"/>.
200
192
/// </summary>
201
-
[Obsolete($"Instead, utilize the {nameof(CreateConnectionAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
202
193
Task<DbConnection>CreateConnectionAsync();
203
194
204
195
/// <summary>
@@ -209,7 +200,6 @@ public interface ISession : IDisposable, IAsyncDisposable
209
200
/// <summary>
210
201
/// Creates or returns an existing <see cref="DbTransaction"/> with the default isolation level.
211
202
/// </summary>
212
-
[Obsolete($"Instead, utilize the {nameof(BeginTransactionAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
213
203
Task<DbTransaction>BeginTransactionAsync();
214
204
215
205
/// <summary>
@@ -220,7 +210,6 @@ public interface ISession : IDisposable, IAsyncDisposable
220
210
/// <summary>
221
211
/// Creates or returns an existing <see cref="DbTransaction"/> with the specified isolation level.
222
212
/// </summary>
223
-
[Obsolete($"Instead, utilize the {nameof(BeginTransactionAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
Copy file name to clipboardExpand all lines: src/YesSql.Abstractions/IStore.cs
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,6 @@ public interface IStore : IDisposable
34
34
/// <summary>
35
35
/// Initializes the database by creating the required tables and the default collection if necessary.
36
36
/// </summary>
37
-
[Obsolete($"Instead, utilize the {nameof(InitializeAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
38
37
TaskInitializeAsync();
39
38
40
39
/// <summary>
@@ -45,7 +44,6 @@ public interface IStore : IDisposable
45
44
/// <summary>
46
45
/// Initializes a collection in the database by creating the required tables if necessary.
47
46
/// </summary>
48
-
[Obsolete($"Instead, utilize the {nameof(InitializeCollectionAsync)} method with a CancellationToken parameter. This current method is slated for removal in upcoming releases.")]
0 commit comments