Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    Aug 11, 2010 @ 16:22
    Biagio Paruolo
    0

    How to use Linq?

    How to use Linq to Umbracp?

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Aug 11, 2010 @ 16:24
    Thomas Höhler
    1

    Check out the videos from Aaron:

    http://aaron-powell.com/training-videos

    Thomas

  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    Aug 13, 2010 @ 11:01
    Biagio Paruolo
    0

    Only Video? I wishy to use Linq and not XSLT because with Linq is possible to debug more friendly and separate logic from presentation. I like mvc.

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Aug 13, 2010 @ 14:12
    Thomas Höhler
    0

    The videos describes step by step to use LinqToUmbraco. And the vids are from Aaron, the guy who implemented LingToUmbraco. Check them out afterwards it is an easy step to use it. If you don't want to watch them just let you create your LinQToUmbraco classes via rightclick on the document types nodes in the settings section.

    hth, Thomas

  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    Oct 11, 2010 @ 14:45
    Biagio Paruolo
    0

    How?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Oct 11, 2010 @ 14:53
    Ismail Mayat
    0

    To make your life easier i recommend you download http://our.umbraco.org/projects/developer-tools/autoexport2dotnet this will auto generate linq2umbraco files then you can start doing cool stuff like

    readonly WoiDataContext _woiContext =new WoiDataContext();

     

     private void InitSearchDropDowns()

            {

                var countries = _woiContext.Countrys.Where(x => x.ParentNodeId == CountryStartNode);

                country.DataSource = countries;

                country.DataValueField = "Name";

                country.DataTextField = "Name";

                country.DataBind();

           }

     

     

    Please note the above is specific to my website.  Watch the videos as recommended by Thomas its how I picked up how to use linq2umbraco.

    Regards

    Isamil


Please Sign in or register to post replies

Write your reply to:

Draft