MedhavinianukuneVedhava Posted January 30, 2013 Report Posted January 30, 2013 [font=arial, sans-serif][size=3]Help needed to convet code from CQL to CQLINQ. [/size][/font] [font=arial, sans-serif][size=3]If (!disposableTypes[i].Contains([/size][/font][font=arial, sans-serif][size=3]'+'))[/size][/font][font=arial, sans-serif][size=3] { string cData = @"// <Name>" + disposableType[i] + @" disposable</Nmame> + Environment.NewLine + WARN IF Count > 0 from m in Application.Methods Select new{ m, m.[/size][/font][font=arial, sans-serif][size=3] string cData = @"// <Name>" + disposableTypes[i]+ @" disposable</Name>" + Environment.NewLine+ @"WARN IF Count > 0 IN SELECT ASSEMBLIES WHERE IsDirectlyUsing ""optional:"+ disposableTypes[i] + @""""; XElement query = new XElemet("Query", new xcData(cData), new XAttribute("Active", "True"), new XAttribute("DisplayList", "True"),new XAttribute("DisplayStat", "True"), new XAttribute("DisplaySelectionView", "False"), new XAttribute("IsCriticalRule, "False")); queryAdd.Add(query); } }[/size][/font]
remobabu Posted January 30, 2013 Report Posted January 30, 2013 [quote name='MedhavinianukuneVedhava' timestamp='1359577108' post='1303203123'] [font=arial, sans-serif][size=3]Help needed to convet code from CQL to CQLINQ. [/size][/font] [font=arial, sans-serif][size=3]If (!disposableTypes[i].Contains([/size][/font][font=arial, sans-serif][size=3]'+'))[/size][/font] [font=arial, sans-serif][size=3]{ string cData = @"// <Name>" + disposableType[i] + @" disposable</Nmame> + Environment.NewLine + WARN IF Count > 0 from m in Application.Methods Select new{ m, m.[/size][/font] [font=arial, sans-serif][size=3]string cData = @"// <Name>" + disposableTypes[i]+ @" disposable</Name>" + Environment.NewLine+ @"WARN IF Count > 0 IN SELECT ASSEMBLIES WHERE IsDirectlyUsing ""optional:"+ disposableTypes[i] + @""""; XElement query = new XElemet("Query", new xcData(cData), new XAttribute("Active", "True"), new XAttribute("DisplayList", "True"),new XAttribute("DisplayStat", "True"), new XAttribute("DisplaySelectionView", "False"), new XAttribute("IsCriticalRule, "False")); queryAdd.Add(query); } }[/size][/font] [/quote] [img]http://lh3.ggpht.com/-5YfGALcYGLk/UPjvZSyR8nI/AAAAAAAAJTc/VbuDTMd944o/s120/Brahmi-10.gif[/img] enti antha ghoranga undi ..inkaa ittanti queries code lo rasthunnara.a..
Recommended Posts