I have two Classes :
class Customer
{
public string Fullname { get; set; }
public string Lastname { get; set; }
public int Age { get; set; }
}
and
class CustomerDTO
{
public string Fullname { get; set; }
public string Lastname { get; set; }
public int Age { get; set; }
}
now i have an expressiontree Expression<Func<Customer, bool>> expression
Passed between layers , can i convert it to Expression<Func<CustomerDTO, bool>> expression
to be able to use it since it would give compile time error!
thanks in advance