LINQ to XML
-
Hello, Is there a way for me to use the cool LINQ syntax to query XML using VS2005? Or do I need VS2008 for that? i.e.:
XElement xml = new XElement("contacts", from c in db.Contacts orderby c.ContactId select new XElement("contact", new XAttribute("contactId", c.ContactId), new XElement("firstName", c.FirstName), new XElement("lastName", c.LastName)) );
Thanks! -
Hello, Is there a way for me to use the cool LINQ syntax to query XML using VS2005? Or do I need VS2008 for that? i.e.:
XElement xml = new XElement("contacts", from c in db.Contacts orderby c.ContactId select new XElement("contact", new XAttribute("contactId", c.ContactId), new XElement("firstName", c.FirstName), new XElement("lastName", c.LastName)) );
Thanks!There isn't a way to access this syntax in VS2005. You need VS2008 (such as the free Express edition) to do that.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Messiah's Blessings on the Mountain (audio) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
There isn't a way to access this syntax in VS2005. You need VS2008 (such as the free Express edition) to do that.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Messiah's Blessings on the Mountain (audio) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
There isn't a way to access this syntax in VS2005. You need VS2008 (such as the free Express edition) to do that.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Messiah's Blessings on the Mountain (audio) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
Thanks!