开发者

PLINQ for DataTables

开发者 https://www.devze.com 2023-03-04 22:28 出处:网络
Is it possible to apply PLinq to the next code: 开发者_如何学Cvar query = from x in Table1.AsEnumerable()

Is it possible to apply PLinq to the next code:

       开发者_如何学C     var query = from x in Table1.AsEnumerable()
            join y in Table2.AsEnumerable() on 
            x.Field<string>("Field1").ToLower() equals 
            y.Field<string>("Field1").ToLower()
            where (x.Field<bool>("Field2") == false)
            select x;

            foreach (var row in query)
            row.SetField<bool>("Field2", true);

Any improving advances are appreciated a lot.

0

精彩评论

暂无评论...
验证码 换一张
取 消