MySQL Entity Framework 4.0 Stored Procedure Field Mapping

前端 未结 1 687
陌清茗
陌清茗 2020-12-17 18:43

Has anyone here used MySQL with the entity framework 4.0 and stored procedures? When I add a SP, it does not show any of my fields that I need to input. I also see no way

1条回答
  •  清酒与你
    2020-12-17 19:19

    due to the bug #55778 (Stored procedure parameters are omitted during update of the entity data model) it is not possible to automatically import MySQL Stored Procedures into a entity data model.

    As a workaround you could manually manipulate the created .edmx file (.ssdl, .csdl):

    Import the MySQL Stored Procedure as discribed above

    Search for the Stored Procedure name within the model (.edmx file or .ssdl, .csdl files)

    Within the Storage Model (SSDL) replace:

      
      
    

    with:

      
        
      
    

    Within the Conceptual Model (CSDL) replace:

      
      
    

    with:

      
        
      
    

    Hope that helps! Cheers

    0 讨论(0)
提交回复
热议问题