@@ -238,17 +238,8 @@ public partial class RepositoryConductor<T> : Conductor, IRepositoryConductor<T>
238
238
239
239
#region FindAll
240
240
241
- /// <summary>
242
- /// Find all filtered, sorted and paged.
243
- /// </summary>
244
- /// <param name="filter">Filter to be used for querying.</param>
245
- /// <param name="orderBy">Properties that should be used for sorting.</param>
246
- /// <param name="includeProperties">Navigation properties that should be included.</param>
247
- /// <param name="skip">Number of entities that should be skipped.</param>
248
- /// <param name="take">Number of entities per page.</param>
249
- /// <param name="ignoreQueryFilters">If true, global query filters will be ignored for this query.</param>
250
- /// <param name="asNoTracking">Ignore change tracking on the result. Set <code>true</code> for read-only operations.</param>
251
- /// <returns>A queryable collection of entities for the given criteria.</returns>
241
+ /// <inheritdoc />
242
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
252
243
public virtual IResult < IQueryable < T > > FindAll (
253
244
Expression < Func < T , bool > > filter = null ,
254
245
Func < IQueryable < T > , IOrderedQueryable < T > > orderBy = null ,
@@ -259,18 +250,8 @@ public virtual IResult<IQueryable<T>> FindAll(
259
250
bool asNoTracking = false
260
251
) => _readConductor . FindAll ( filter , orderBy , includeProperties , skip , take , ignoreQueryFilters , asNoTracking ) ;
261
252
262
- /// <summary>
263
- /// Find all filtered, sorted and paged by grouping the result
264
- /// </summary>
265
- /// <param name="filter"></param>
266
- /// <param name="orderBy"></param>
267
- /// <param name="groupBy"></param>
268
- /// <param name="includeProperties"></param>
269
- /// <param name="skip"></param>
270
- /// <param name="take"></param>
271
- /// <param name="ignoreQueryFilters"></param>
272
- /// <param name="asNoTracking">Ignore change tracking on the result. Set <code>true</code> for read-only operations.</param>
273
- /// <returns></returns>
253
+ /// <inheritdoc />
254
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
274
255
public IResult < IQueryable < IGrouping < TKey , T > > > FindAll < TKey > (
275
256
Expression < Func < T , bool > > filter = null ,
276
257
Func < IQueryable < T > , IOrderedQueryable < T > > orderBy = null ,
@@ -282,21 +263,8 @@ public IResult<IQueryable<IGrouping<TKey, T>>> FindAll<TKey>(
282
263
bool asNoTracking = false
283
264
) => _readConductor . FindAll ( filter , orderBy , groupBy , includeProperties , skip , take , ignoreQueryFilters , asNoTracking ) ;
284
265
285
- /// <summary>
286
- /// Configure lazy loaded queryable, given provided parameters, to load a list of <typeparamref name="T"/>
287
- /// grouped by a <typeparamref name="TKey"/> and selected by groupBySelector tranformed into <typeparamref name="TResult"/>
288
- /// ref to: https://docs.microsoft.com/en-us/dotnet/api/system.linq.queryable.groupby?view=netcore-3.1#System_Linq_Queryable_GroupBy__3_System_Linq_IQueryable___0__System_Linq_Expressions_Expression_System_Func___0___1___System_Linq_Expressions_Expression_System_Func___1_System_Collections_Generic_IEnumerable___0____2___
289
- /// </summary>
290
- /// <param name="filter">Filter to be used for querying.</param>
291
- /// <param name="orderBy">Properties that should be used for sorting.</param>
292
- /// <param name="groupBy">Filter to be used for grouping by <typeparamref name="TKey"/> of <typeparamref name="T"/> .</param>
293
- /// <param name="groupBySelector">Selector to be used on groupBy used to create a result of <typeparamref name="TResult"/> value from each group.</param>
294
- /// <param name="includeProperties">Navigation properties that should be included.</param>
295
- /// <param name="skip">Number of entities that should be skipped.</param>
296
- /// <param name="take">Number of entities per page.</param>
297
- /// <param name="ignoreQueryFilters">If true, global query filters will be ignored for this query.</param>
298
- /// <param name="asNoTracking">Ignore change tracking on the result. Set <code>true</code> for read-only operations.</param>
299
- /// <returns></returns>
266
+ /// <inheritdoc />
267
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
300
268
public IResult < IQueryable < TResult > > FindAll < TKey , TResult > (
301
269
Expression < Func < T , bool > > filter = null ,
302
270
Func < IQueryable < T > , IOrderedQueryable < T > > orderBy = null ,
@@ -308,18 +276,10 @@ public IResult<IQueryable<TResult>> FindAll<TKey, TResult>(
308
276
bool ? ignoreQueryFilters = false ,
309
277
bool asNoTracking = false
310
278
) => _readConductor . FindAll ( filter , orderBy , groupBy , groupBySelector , includeProperties , skip , take , ignoreQueryFilters , asNoTracking ) ;
311
-
312
279
313
- /// <summary>
314
- /// Alternative FindAll for retrieving records using NextLinkParams in place of traditional
315
- /// determinate pagination mechanisms, such as; skip and take.
316
- /// </summary>
317
- /// <param name="nextLinkParams">Currently nothing is provided for NextLinkParams by this base class. Exists for overriding subclasses.</param>
318
- /// <param name="filter">Filter to be used for querying.</param>
319
- /// <param name="orderBy">Properties that should be used for sorting.</param>
320
- /// <param name="ignoreQueryFilters">If true, global query filters will be ignored for this query.</param>
321
- /// <param name="asNoTracking">Ignore change tracking on the result. Set <code>true</code> for read-only operations.</param>
322
- /// <returns>A queryable collection of entities for the given criteria.</returns>
280
+
281
+ /// <inheritdoc />
282
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
323
283
public virtual IResult < IQueryable < T > > FindAll (
324
284
Dictionary < string , string > nextLinkParams ,
325
285
Expression < Func < T , bool > > filter = null ,
@@ -328,16 +288,8 @@ public virtual IResult<IQueryable<T>> FindAll(
328
288
bool asNoTracking = false
329
289
) => _readConductor . FindAll ( nextLinkParams , filter , orderBy , ignoreQueryFilters , asNoTracking ) ;
330
290
331
- /// <summary>
332
- /// Similar to FindAll but loading the result into memory.
333
- /// </summary>
334
- /// <param name="filter">Filter to be used for querying.</param>
335
- /// <param name="orderBy">Properties that should be used for sorting.</param>
336
- /// <param name="includeProperties">Navigation properties that should be included.</param>
337
- /// <param name="skip">Number of entities that should be skipped.</param>
338
- /// <param name="take">Number of entities per page.</param>
339
- /// <param name="ignoreQueryFilters">If true, global query filters will be ignored for this query.</param>
340
- /// <returns>An in-memory collection of entities for the given criteria.</returns>
291
+ /// <inheritdoc />
292
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
341
293
public virtual IResult < IList < T > > FindAllCommitted (
342
294
Expression < Func < T , bool > > filter = null ,
343
295
Func < IQueryable < T > , IOrderedQueryable < T > > orderBy = null ,
@@ -347,14 +299,8 @@ public virtual IResult<IList<T>> FindAllCommitted(
347
299
bool ? ignoreQueryFilters = false
348
300
) => _readConductor . FindAllCommitted ( filter , orderBy , includeProperties , skip , take , ignoreQueryFilters ) ;
349
301
350
- /// <summary>
351
- /// Similar to FindAll but loading the result into memory.
352
- /// </summary>
353
- /// <param name="nextLinkParams">Currently nothing is provided for NextLinkParams by this base class. Exists for overriding subclasses.</param>
354
- /// <param name="filter">Filter to be used for querying.</param>
355
- /// <param name="orderBy">Properties that should be used for sorting.</param>
356
- /// <param name="ignoreQueryFilters">If true, global query filters will be ignored for this query.</param>
357
- /// <returns>An in-memory collection of entities for the given criteria.</returns>
302
+ /// <inheritdoc />
303
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
358
304
public virtual IResult < IList < T > > FindAllCommitted (
359
305
Dictionary < string , string > nextLinkParams ,
360
306
Expression < Func < T , bool > > filter = null ,
@@ -366,52 +312,28 @@ public virtual IResult<IList<T>> FindAllCommitted(
366
312
367
313
#region FindById
368
314
369
- /// <summary>
370
- /// Finds an entity by its Id.
371
- /// </summary>
372
- /// <param name="id">The entity identity value.</param>
373
- /// <returns>The entity with the provided identity value.</returns>
315
+ /// <inheritdoc />
316
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
374
317
public virtual IResult < T > FindById ( long id ) => _readConductor . FindById ( id ) ;
375
318
376
- /// <summary>
377
- /// Finds an entity by its Id that also matches a filter.
378
- /// </summary>
379
- /// <param name="id">The entity identity value.</param>
380
- /// <param name="filter">Filter to be used for querying.</param>
381
- /// <returns>The entity with the provided identity value and filter condition met.</returns>
319
+ /// <inheritdoc />
320
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
382
321
public virtual IResult < T > FindById ( long id , Expression < Func < T , bool > > filter ) => _readConductor . FindById ( id , filter ) ;
383
322
384
- /// <summary>
385
- /// Finds an entity by its Id.
386
- /// </summary>
387
- /// <param name="id">The entity identity value.</param>
388
- /// <param name="includeProperties">Navigation properties that should be included.</param>
389
- /// <returns>The entity with the provided identity value.</returns>
323
+ /// <inheritdoc />
324
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
390
325
public virtual IResult < T > FindById ( long id , params Expression < Func < T , object > > [ ] includeProperties ) => _readConductor . FindById ( id , includeProperties ) ;
391
326
392
- /// <summary>
393
- /// Finds an entity by its Id.
394
- /// </summary>
395
- /// <param name="id">The entity identity value.</param>
396
- /// <param name="ignoreQueryFilters">If true, global query filters will be ignored for this query.</param>
397
- /// <param name="includeProperties">Navigation properties that should be included.</param>
398
- /// <returns>The entity with the provided identity value.</returns>
327
+ /// <inheritdoc />
328
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
399
329
public virtual IResult < T > FindById ( long id , bool ignoreQueryFilters , params Expression < Func < T , object > > [ ] includeProperties ) => _readConductor . FindById ( id , ignoreQueryFilters , includeProperties ) ;
400
330
401
- /// <summary>
402
- /// Finds an entity by its Id.
403
- /// </summary>
404
- /// <param name="id">The entity identity value.</param>
405
- /// <param name="includeProperties">Navigation properties that should be included.</param>
406
- /// <returns>The entity with the provided identity value.</returns>
331
+ /// <inheritdoc />
332
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
407
333
public IResult < T > FindById ( long id , params string [ ] includeProperties ) => _readConductor . FindById ( id , includeProperties ) ;
408
334
409
- /// <summary>
410
- /// Finds an entity by its Id.
411
- /// </summary>
412
- /// <param name="id">The entity identity value.</param>
413
- /// <param name="includeProperties">Navigation property that should be included.</param>
414
- /// <returns>The entity with the provided identity value.</returns>
335
+ /// <inheritdoc />
336
+ [ Obsolete ( "This method is deprecated in favor of its async counter part" , false ) ]
415
337
public IResult < T > FindById ( long id , string includeProperties ) => _readConductor . FindById ( id , includeProperties ) ;
416
338
417
339
#endregion FindById
0 commit comments