LINQ in Action roller

data layer with LINQ querying XML documents

Hi, i'm working on building data layer having XML documents for storage like : Code Snippet 1 First item 12.32 ... So in my data layer i want to implement methodsĀ : GetAll, GetByName, GetByPrice,... so far this is the scenario i used : Code Snippet class ItemDal { private static IEnumerable GetCore() { XDocument xml = XDocument.Load("dataItems.xml"); return ( from row in xml.Descendants("item") select new Item { ItemID = (int)row.Element("id"), Name = row.Element("name") != null ? (string)row.Element("name") Read More...
Published Monday, July 28, 2008 10:43 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication