亚音速虫子? ExpressionVisitor linq
我这个subsonic3.0.0.4的find语句有问题:
IList<Market> marketlist = marketlRep.Find<Market>(
type => type.MarketType == Convert.Int32(MarketType)).
OrderBy(type => type.DisplayOrder).ToList();
数据库中有4条数据,但返回的列表为空
使用下面的形式,可以返回正确的数据。
var mtype = Convert.ToInt32(marketType);
IList<Market> marketlist = marketlRep.Find<Market>(
type => type.MarketType == mtype).
OrderBy(type => type.DisplayOrder).ToList();
谢谢你!!
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>(
type => type.MarketType == mtype).
OrderBy(type => type.DisplayOrder).ToList();
Thank you!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论