private void BuildResultItemCollection(YellowstonePathology.Business.Test.Model.Test test, XElement testElement) { List<XElement> resultElements = (from item in testElement.Elements("ResultItemCollection") select item).ToList<XElement>(); foreach (XElement resultElement in resultElements.Elements("ResultItem")) { YellowstonePathology.Test.Model.ResultItem result = new YellowstonePathology.Test.Model.ResultItem(); Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(resultElement); result.WriteProperties(xmlPropertyWriter); test.ResultItemCollection.Add(result); } }
private void BuildResultItemCollection(YellowstonePathology.Business.Test.Model.Test test, XElement testElement) { List <XElement> resultElements = (from item in testElement.Elements("ResultItemCollection") select item).ToList <XElement>(); foreach (XElement resultElement in resultElements.Elements("ResultItem")) { YellowstonePathology.Test.Model.ResultItem result = new YellowstonePathology.Test.Model.ResultItem(); Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(resultElement); result.WriteProperties(xmlPropertyWriter); test.ResultItemCollection.Add(result); } }