Add String.Format Support in Lightspeed LINQ Statements


I often need to create a field which is made up of server other fields. A typical example would be formatting code and name into a single string field. Currently I am forced to use the String + to concatenate, but Resharper complains at this and tells me to use a String.Format.

An example is

var ss = from s in uow.Stocks
            where s.Status == (int) Enums.StockStatus.Active
            orderby s.StockCode
            orderby s.Description
            select new StockSearch
                                 Id = s.Id,
                                 Description = s.StockCode + " - " + s.Description,
                                 StockCode = s.StockCode
Status: New