简体   繁体   English

如何将存储过程添加到EF .edmx?

[英]How to add stored procedures to EF .edmx?

I have a Mysql db and I cannot add stored procedures; 我有一个Mysql数据库,无法添加存储过程。 I can see them in the update wizard but when I tick them and click save they are not added to the model. 我可以在更新向导中看到它们,但是当我勾选它们并单击“保存”时,它们不会添加到模型中。

Tried changing version of the connector as well as the version of entity framework yet nothing happens and I get no error. 尝试更改连接器的版本以及实体框架的版本,但没有任何反应,我也没有收到任何错误。

I found out that it works but I had to tick off the "Import selected procedures and functions into the entity model" option and after the procedures were added I had to manually import the functions. 我发现它可以工作,但是我必须勾选“将所选过程和函数导入到实体模型中”选项,并且在添加过程之后,我必须手动导入函数。 I think EF was not able to import the result type for the procedures even though they were simple ones like scalars etc. yet there was no error / warning -.- . 我认为EF无法导入过程的结果类型,即使它们是诸如标量等简单的结果,也没有错误/警告-.-。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM