Enumerable.Concat not working
<p>Below is the code:</p>

<pre><code>string[] values = Acode.Split(',');
IEnumerable&lt;Test&gt; tst = null;

foreach (string a in values)
{
    if (tst== null)
        tst = entities.Test.Where(t=&gt; (t.TCode == Convert.ToInt16(a)));
    else
        tst.Concat(entities.Test.Where(g =&gt; (g.TCode == Convert.ToInt16(a))));

}

return tst.ToList();
</code></pre>

<p>I am not able to get all the records in tst, it is giving me records only for the last value in array.</p>

<p>So if my array contains 1,2,3,4 I am getting records only for the 4. Whereas i need all the result for 1,2,3 and 4 get appended in tst.</p>

<p>Any help will be appreciated.</p>