Thursday, July 21, 2011

Convert int to string in LINQ to Entities Query

ddEnrollmentMethod.DataSource = from t in context.EnrollmentMethods
orderby t.Name
select new { Name = SqlFunctions.StringConvert((double)t.EnrollmentMethodID) + ". " + t.Name, t.EnrollmentMethodID };


  1. Ahaa, its fastidious conversation regarding this paragraph here at this
    weblog, I have read all that, so at this time me also commenting at this place.

    Here is my homepage

  2. I know this if off topic but I'm looking into starting my own weblog and was curious what all is required to get setup? I'm assuming having a
    blog like yours would cost a pretty penny? I'm not very web smart so I'm not 100% sure. Any tips or advice would be greatly appreciated. Thanks

    Here is my webpage ... Corporate Movers

  3. Thank you a lot for sharing this with all people you really know
    what you're speaking approximately! Bookmarked. Kindly additionally seek advice from my web site =). We can have a hyperlink trade agreement between us

    optimal stack

  4. Hi there, its pleasant post about media print,
    we all be familiar with media is a enormous source of facts.

    Order Nuvocleanse