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...