adamfoneil / Dapper.CX

A Crud library based on Dapper
MIT License
8 stars 1 forks source link

GetWhereAsync not working with Equals method #34

Open adamfoneil opened 3 years ago

adamfoneil commented 3 years ago

lambda expression type not supported. I was trying this

var customer = await cn.GetWhereAsync<Customer>(model => model.Path.Equals(blob.CustomerPath));

but it didn't like me using Equals. I had to re-phrase like this

var customer = await cn.GetWhereAsync<Customer>(model => model.Path == blob.CustomerPath);

and it worked -- but the first case should work