Public feed #528251

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-06-01 13:56 UTC
rendered paste body
if (topicTexts != null)
                    {
                        TopicTextDataMapper oTopicTextDataMapper = new TopicTextDataMapper(oDb);
                        TopicDataMapper oTopicDataMapper = new TopicDataMapper(oDb);
                        List<Topic> topics;
                        Weborb.Data.Management.QueryResult qeuryResult;
                        foreach (TopicText oTopicText in topicTexts)
                        {
                            qeuryResult = oTopicDataMapper.findBySql("select * from topic where EngineID = " + oTopicText.RelatedTopic.EngineID);
                            topics = (List<Topic>)qeuryResult.Result;
                            if (topics.Count > 0)
                            {
                                oTopicText.RelatedTopic = topics[0];
                                oTopicText.RelatedText = oText;
                                oTopicTextDataMapper.create(oTopicText);
                            }
                        }
                    }