var studienummerQuery = from members in dbcontent.Medlemmer.Include("Retninger")
                                    orderby members.Fornavn
                                    select members;
           
            foreach(var a in studienummerQuery)
           {
               Console.WriteLine(a);
           }

Thats my code, wonder why it doesnt work..

My tables are:
Medlemmer
Retninger

What is the problem? Do you get any error message?

getting Endproject.Medlemmer as a return.
which is like Namespace.Tablename

fixed... needed to write a.(coloumn name)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.