开发者

Dynamically set sproc name in Linq to SQL?

开发者 https://www.devze.com 2022-12-30 05:14 出处:网络
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

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

精彩评论

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