subsonic bug? ExpressionVisitor linq
I have a problem with this subsonic3.0.0.4 find statement:
IList<Market> marketlist = marketlRep.Find<Market>(
type => type.MarketType == Convert.Int32(MarketType)).
OrderBy(type => type.DisplayOrder).ToList();
There are four the number of data in the database, but the list returned is empty
Use the following form, you can return the correct data.
var mtype = Convert.ToInt32(marketType);
IList<Market> marketlist = marketlRep.Find<Market>(
开发者_StackOverflow type => type.MarketType == mtype).
OrderBy(type => type.DisplayOrder).ToList();
Thank you!!
精彩评论