作者:雅蕙蕙蕙 | 来源:互联网 | 2023-09-23 16:53
public virtual int new_procedure()
{
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("new_procedure");
}
上面是生成的调用存储过程的代码
CREATE DEFINER=`root`@`localhost` PROCEDURE `new_procedure`(
in id int
)
BEGIN
END
上面是mysql中存储过程的内容
应该有一个id参数传入才对,但为什么没有生成这个呢
2 个解决方案
This is a bug:
http://stackoverflow.com/questions/1011062/using-the-entity-framework-with-a-mysql-db-and-the-model-designer-doesnt-pickup
http://bugs.mysql.com/bug.php?id=44985