var predicate = PredicateBuilder.True<Shop_Product>(); 1. predicate = predicate.And(c => c.CommodityType.StartsWith(temmp)); 2. predicate = predicate.And(c => c.CommodityType.Contains("0102")); 3. predicate = predicate.And(c => c.CommodityType.IndexOf("0102")>-1);
以上是三种like 实现