开发者

Dynamic query with string value

开发者 https://www.devze.com 2023-03-17 08:20 出处:网络
I\'m using ScottGu\'s Dynamic Linq and everything work fine, but I\'ve an issue: There are some tables which contains a primay key as string type, so how can I make a dynamic query passi string type

I'm using ScottGu's Dynamic Linq and everything work fine, but I've an issue:

There are some tables which contains a primay key as string type, so how can I make a dynamic query passi string type to where calusole?

I cannot find any synt开发者_C百科ax for that...

Example: QueryAbleObject.Where(StringField = 'someValue'); -> It throws a parser exception..


Excerpt from OP's comment above:

"I just found the exact syntaxt..Simply passing " character instead of single quot."

0

精彩评论

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

关注公众号