示例#1
0
文件: Mapper.cs 项目: fgma75/epiinfo
        public static ResponseXml ToEF(ResponseXmlBO ResponseXmlBO)
        {
            ResponseXml ResponseXml = new ResponseXml();

            ResponseXml.ResponseId  = new Guid(ResponseXmlBO.ResponseId);
            ResponseXml.Xml         = ResponseXmlBO.Xml;
            ResponseXml.UserId      = ResponseXmlBO.User;
            ResponseXml.IsNewRecord = ResponseXmlBO.IsNewRecord;
            return(ResponseXml);
        }
示例#2
0
文件: Mapper.cs 项目: fgma75/epiinfo
        public static SurveyResponseBO Map(ResponseXml ResponseXml)
        {
            SurveyResponseBO SurveyResponseBO = new SurveyResponseBO();

            SurveyResponseBO.ResponseId = ResponseXml.ResponseId.ToString();
            SurveyResponseBO.XML        = ResponseXml.Xml;
            //  SurveyResponseBO.UserId = (int)ResponseXml.UserId;
            //  SurveyResponseBO.IsNewRecord = (bool)ResponseXml.IsNewRecord;
            return(SurveyResponseBO);
        }