开发者

Dynamic query with string value

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜