Add support for Indexed Dtos ...

This commit is contained in:
2025-07-19 05:28:43 +03:30
parent 0aa6608b19
commit 3ab7228a37
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -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);
}
}
}