Concatenate string in Linq query
<p>I have a db call that returns me an object. I use linq to cast that object how I want it</p>

<pre><code>var result = queryResult.OrderBy(c =&gt; c.TariffName)
                        .Take(count)
                        .Select(c =&gt; new
                            {
                                Text = c.TariffName,
                                Key = c.TariffId,
                                Price = c.LineRental
                            });

var list = result.ToList();
</code></pre>

<p>I now want to add the line rental to the tariff name show that it shows like:</p>

<p>myTariff - 12.99</p>

<p>when I try and do this though I can make this change ok:</p>

<pre><code>Text = c.TariffName + " - ",
</code></pre>

<p>but when I try and add the line rental I get problems that linq won't recognise the ToString(). I need it to look like:</p>

<pre><code>Text = c.TariffName + " - " + c.LineRental.ToString(),
</code></pre>

<p>I understand that linq won't recognise the ToString() method from reading <a href="https://stackoverflow.com/questions/5899683/linq-to-entities-does-not-recognize-the-method-system-string-tostring-method">LINQ to Entities does not recognize the method &#39;System.String ToString()&#39; method, and this method cannot be translated into a store expression</a> but how do I change this given I can't set it as a string prior to the linq query?</p>