DocSas/PropertyService.Domain/DataBaseContext/PSRepository.cs
/// <summary>
/// get single as an asynchronous operation.
/// </summary>
/// <param name="filter">The filter.</param>
/// <param name="navigationPath">The navigation path.</param>
/// <param name="numberOfRecords">The number of records.</param>
/// <param name="isOrderDesc">if set to <c>true</c> [is order desc].</param>
/// <returns>Task&lt;T&gt;.</returns>
get single as an asynchronous operation.
get single as an asynchronous operation .
public async Task<T> GetSingleAsync(Expression<Func<T, bool>> filter = null, string navigationPath = null, int numberOfRecords = 1, bool isOrderDesc = false)
        {
            var item = await GetAsync(filter, navigationPath, numberOfRecords, isOrderDesc);
            return item.FirstOrDefault();
        }
public async Task < T > GetSingleAsync ( Expression < Func < T , bool > > filter = null , string navigationPath = null , int numberOfRecords = 1 , bool isOrderDesc = false ) { var item = await GetAsync ( filter , navigationPath , numberOfRecords , isOrderDesc ) ; return item . FirstOrDefault ( ) ; }
get single as an asynchronous operation.
get single as an asynchronous operation .
None
filter
Expression<Func<T, bool>>
None
navigationPath
string
The navigation path.
The navigation path .
numberOfRecords
int
The number of records.
The number of records .
isOrderDesc
bool
if set to true
if set to true