开发者

Parameter with leading underscore in existing store procedure

We have update store procedure that we have to use t开发者_开发问答hat have the parameter as _ModifiedBy. EF create mapping and add p letter to the parameter name like p_ModifiedBy, that I can not change.

When the program call to the store procedure it fails with no _ModifiedBy parameter was supplied.

Changing the parameter name to start with letter fixes the problem but there is a lot of logic based on that underscore.


Try to remove the redundant "p" letter from the parameter definition in both CSDL and SSDL parts of the model (using XML Editor). Everything should work smoothly.
Unfortunately, these changes will be discarded after any Update Wizard from database call, it is a known limitation of this wizard.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜