0
Follow
2
View

How to JOIN two data tables using LINQ and Where condition?

dtcnpc 注册会员
2023-01-25 11:54

Your LINQ code should work, I guess you just need to use the same where the condition values for QID.

 where t2.Field("QID") == "AAA" && t1.Field("QID") == "ABCD"

is not equal to your SQL:

 WHERE t2.QID = 'AAAAA' AND t1.QID = 'XXXX'

It should work when you set correct values in LINQ

About the Author

Question Info

Publish Time
2023-01-25 11:54
Update Time
2023-01-25 11:54

Related Question