Posts by Alexandre Moss • 165 points
6 posts
-
9
votes3
answers2052
viewsQ: Convert a comma-separated string to a multidimensional array
I have a string thus ... var listAdd = "1789, 3, 8 , 1788, 3, 8, 1790, 3, 9" How do I convert into a array as below? [1789,3,8], [1788,3,8], [1790,3,9] The code I’m trying isn’t working: var…
-
3
votes2
answers560
viewsQ: How to improve the performance of the Linq query?
I have the consultation below var f = (from l in fpcList join fpp in FPP on new { l.fpId, l.etId } equals new { fpp.fpId, fpp.etId } join fpcp in FPCP on fpp.fppId equals fpcp.fppId select new {…
-
0
votes0
answers65
viewsQ: Method is not recognized within select
The query works perfectly, but when I include the Getqtdecpossible method that returns an integer, to get the possible amount and not need to make other error queries. What I do wrong? var fpcpAdd =…
-
1
votes1
answer29
viewsA: How to get duplicate items for specific Ids?
I managed to solve this way, posted as an answer, because it can help other people. Thank you! if (lst.GroupBy(p => new { p.fpId, p.eclId }) .Where(x => x.Count() > 1) .Sum(x =>…
-
0
votes1
answer29
viewsQ: How to get duplicate items for specific Ids?
How do I get the list of repeating items with the same fpId and eclId? var lst = (from fp in FPIds from et in ETIds from ec in ECIds join eclp in ECLP on ec equals eclp.ecId join ecl in ECL on…
-
3
votes1
answer217
viewsQ: How to use denial in Contains c# with LINQ?
I need help, I’m starting in development, eclistIds returns me two ids, and if I don’t use the negation ( ! ) it returns me the id I don’t want, when I use the negation to return the other id,…