Cant see extensions in Razor??? RRS feed

  • Question

  • Hi,

    I have a class, Product, this is populated from a database to List<Product> PRODUCTS.

    I then use, things like Products.first(p=>p.Prod_ID=1).Product_Name

    This worked, when i created this at work, but bringing it home, i now don't see the extension method .First anymore, where i did at work, as i built it there, and have brought it home to finish??

    Can anyone advise, as this is the back bone for the Razor site.


    Friday, March 13, 2015 5:26 PM


  • Sounds like a missing reference to System.Linq.

    As in the reference is there but the dll it is expecting isn't where the reference points to.

    Maybe the dll was linked in a bit of a dodgy way.

    Hope that helps.
    Recent Technet articles: Property List Editing; Dynamic XAML

    • Proposed as answer by Kristin Xie Monday, March 16, 2015 6:55 AM
    • Marked as answer by Kristin Xie Wednesday, March 25, 2015 12:07 PM
    Friday, March 13, 2015 5:34 PM