Add support for Indexed Dtos ...
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using xCommons.Extensions;
|
||||
using xModels.Dtos;
|
||||
|
||||
@@ -30,5 +33,12 @@ namespace xModels.Extensions
|
||||
//
|
||||
return isSame;
|
||||
}
|
||||
|
||||
public static IEnumerable<T> AsEnumerable<T, TIndex>(
|
||||
this IEnumerable<XBaseIndexedDto<T, TIndex>> source
|
||||
)
|
||||
{
|
||||
return source.Select(i => i.Item);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user