MySQL Forums
Forum List  »  MySQL for Visual Studio

Re: EF6 stored proc failing in EFMySqlDataReader GetDataTypeName. No automatic type generation?
Posted by: JOSE RAMIREZ
Date: July 10, 2017 05:26PM

Hello Andrew,
I've been able to reproduce said behavior. I've noticed that the automatically generated complex type is missing the properties, hence EF isn't able to map the DB columns to the complex type's properties. Follow below steps to fix the problem:

1. Open the "Model Browser".
2. Add the missing properties to the complex type. The properties should match the rows returned by your SP and preferably be named the same. To do so, right click the complex type and select the "Add" option.
3. Run the application. The code for the complex type class should be generated automatically.


I'll be making some additional investigation to identify if a bug needs to be raised for this behavior.


Regards.




====================================
Jose Maria Ramirez
MySQL Windows Experience Team

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.