使用Linq解决实体问题?
List<long?> txnIds = new List<long?>();// Fill list var q = from t in svc.OpenTransaction where txnIds.Contains(t.OpenTransactionId) select t;
var q = from t in svc.OpenTransactionwhere txnIds.Any<long>(tt => tt == t.OpenTransactionId)select t;
相关分类