.
This commit is contained in:
@@ -13,9 +13,9 @@ namespace PartSource.Services.Extensions
|
||||
{
|
||||
public static class IQueryableExtensions
|
||||
{
|
||||
public static IQueryable<T> ApplyQueryDto<T>(this IQueryable<T> queryable, T dto)
|
||||
public static IQueryable<T> ApplyQueryDto<T, U>(this IQueryable<T> queryable, U dto)
|
||||
{
|
||||
foreach (PropertyInfo property in typeof(T).GetProperties())
|
||||
foreach (PropertyInfo property in typeof(U).GetProperties())
|
||||
{
|
||||
object value = property.GetValue(dto);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user