Tech Off Post

Single Post Permalink

View Thread: LINQ casting
  • User profile image
    GamlerHart

    Hi

     

    the .Select-Operation a there for building any projection. So it's easy to transform your Integer to a String by adding a .ToString() in your Select-Statement:

     

    mBottleCodes = (From r In mDS.BOTTLECODESVIEW

                                   Select r.BOTTLECODE.ToString()
                                    Order By BOTTLECODE).ToList()