private static Domain.OrderCommentLog BuildOrderCommentLog(XElement sourceElement) { Domain.OrderCommentLog orderCommentLog = new Domain.OrderCommentLog(); if (sourceElement != null) { Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement); orderCommentLog.WriteProperties(xmlPropertyWriter); } return(orderCommentLog); }
private static Domain.OrderCommentLog BuildOrderCommentLog(XElement sourceElement) { Domain.OrderCommentLog orderCommentLog = new Domain.OrderCommentLog(); if (sourceElement != null) { Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement); orderCommentLog.WriteProperties(xmlPropertyWriter); } return orderCommentLog; }
private static Domain.MaterialLocation BuildMaterialLocation(XElement sourceElement) { Domain.MaterialLocation materialLocation = new Domain.MaterialLocation(); if (sourceElement != null) { Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement); materialLocation.WriteProperties(xmlPropertyWriter); } return(materialLocation); }
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); } }
public void Build(XElement sourceElement) { if (sourceElement != null) { YellowstonePathology.Business.View.AccessionSlideOrderView accessionSlideOrderView = new View.AccessionSlideOrderView(); Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement); accessionSlideOrderView.WriteProperties(xmlPropertyWriter); BuildSlideOrder(accessionSlideOrderView, sourceElement); this.m_AccessionSlideOrderView = accessionSlideOrderView; } else { this.m_AccessionSlideOrderView = null; } }
private static Domain.MaterialLocation BuildMaterialLocation(XElement sourceElement) { Domain.MaterialLocation materialLocation = new Domain.MaterialLocation(); if (sourceElement != null) { Domain.Persistence.SqlXmlPropertyWriter xmlPropertyWriter = new Domain.Persistence.SqlXmlPropertyWriter(sourceElement); materialLocation.WriteProperties(xmlPropertyWriter); } return materialLocation; }