示例#1
0
 private static void GenerateTargetFieldName(XIMOutboundMessage message)
 {
     if (message == null)
     {
         return;
     }
     foreach (XIMMappingItem item in message.MappingList)
     {
         if (item.Enable && !XIMHelper.IsComplex(item.Element.Type))
         {
             GenerateTargetFieldName(item);
         }
     }
 }
示例#2
0
        private static void ClearMapping(XIMMessage message)
        {
            if (message == null)
            {
                return;
            }

            List <XIMMappingItem> deletelist = new List <XIMMappingItem>();

            foreach (XIMMappingItem item in message.MappingList)
            {
                if (item.Enable && !XIMHelper.IsComplex(item.Element.Type))
                {
                    continue;
                }
                deletelist.Add(item);
            }

            foreach (XIMMappingItem item in deletelist)
            {
                message.MappingList.Remove(item);
            }
        }