influxdb-client-csharp icon indicating copy to clipboard operation
influxdb-client-csharp copied to clipboard

System.NotSupportedException: 'The expression 'Contains', type: 'System.Linq.Expressions.MethodCallExpression' is not supported.'

Open ManuzXo opened this issue 1 year ago • 0 comments

I have this specific error with linq: "System.NotSupportedException: 'The expression '[s].Node.Contains("0")', type: 'System.Linq.Expressions.MethodCallExpression' is not supported.'"

this is the code:

        var query = (from s in InfluxDBQueryable<Record>.Queryable(BucketName,
            Organization,
            queryApiTest,
            memberResolver)
                     where s.Measurament == _MEASUREMENT_LAST_DATA 
                     && s.Node.Contains(0.ToString())
                     select s).ToList();
      
    

ManuzXo avatar May 04 '23 09:05 ManuzXo