MySQL Forums
Forum List  »  MySQL for Visual Studio

Generate Data from Model error
Posted by: Eric LEFORT
Date: June 19, 2019 04:20AM

Hello,

I'm trying to generate a sql file with "Generate Data from Model..." in Visual Studio 2017 but I got this error bellow.
I also try installing the NET Connector 6 and using SSDLToMySQL6.tt instead of SSDLToMySQL8.tt without any success.

Does anyone encouter this error or have a workaround ?


Using :
MySQL Connector Net 8.0.16
MySQL for Visual studio 1.2.8
Visual Studio 2017


Thank you

---------------------------
Microsoft Visual Studio
---------------------------
Encountered the following errors while processing the template 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\SSDLToMySQL8.tt:

Line 1, Column 0: 'Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.

at Microsoft.Data.Entity.Design.DatabaseGeneration.MetadataWorkspaceExtensions.GetAllAssociationSets(ItemCollection itemCollection)

at Microsoft.VisualStudio.TextTemplating4B1298E602B39E79185D1F9D78990057F090F49CF5DBAEDCED4B30036D49EC3FE9FCCC1D8E02C22CB544E54331DBA172AAFC2F132738B152A09292966411FDCA.GeneratedTextTransformation.TransformText() in C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\SSDLToMySQL8.tt:line 2'


---------------------------
OK
---------------------------

Options: ReplyQuote


Subject
Views
Written By
Posted
Generate Data from Model error
56
June 19, 2019 04:20AM


Sorry, only registered users may post in this forum.

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.