When using this code (simplified for query):
var rows1 = (from t1 in db.TABLE1 where (t1.COLUMN_A == 1) select new { t1.COLUMN_B, t1.COLUMN_C }); var rows2 = (from t2 in db.TABLE2 where (rows1.Contains(t2.COLUMN_A)) select t2;
I got the following error:
Type arguments for the method 'System.Linq.Enumerable.Contains (System.Collections.Generic.IEnumerable, TSource)' cannot be inferred from Application. Try to specify the type of the arguments explicitly.
I need to filter out the first result of COLUMN_B, but I don't know how to do it. Is there any way to filter it?
source share