If i have a product.
var p = new Product { Price = 30 };
and i have the following linq query.
var q = repo.Products().Where         
        
If you had a class:
public class Item
{
    public int Id { get; set; }
}
and an instance of the object:
var myItem = new Item { Id = 7 };
You can get the value of Id using an Expression using the following code:
Expression> exp = x => x.Id;
var me = exp.Body as MemberExpression;
var propInfo = me.Member as PropertyInfo;
var myValue = propInfo.GetValue(myItem, null);
 
myValue will contain "7"