开发者

Dynamically set sproc name in Linq to SQL?

I need to dynamically set the sproc name of a Linq to SQL query and can't figure out how. I see in the dbml designer that the sproc name is an attribute but it must be a constant, so I can't set it to a dynamic value. Please help. Thanks, 开发者_如何学CJustin


I was able to figure this out, the answer is to use dataContext.ExecuteQuery or dataContext.ExecuteCommand.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜