I am using Microsoft Visual Studio 2012 Version 11.0.50727.1 RTMREL
with Microsoft .NET Framework 4.5.50709 with Entity Framework version 5.0.0.0
with Oracle MySQL Connector 6.7.4.0 with runtime version 4.0.30319
I have 3 entities (tables) inside of a .edmx (Entity) model with many scalar properties and an association between the entities.
Upon using the context menu (via right click) in an attempt to "Generate Database from Model" I receive a rather long error message, which is at the bottom of the post.
In my entity model, I have added the reference "MySql.Data.Entity" and changed the DDL Generation Template to "SSDLToMySQL.tt (VS)," as per the documentation for the MySQL Connector Net. The model is a "ConceptualEntityModel" currently, but the same error occurs if no type is chosen (the default).
Checking the error list also shows a warning: "Compiling transformation: Comparison to integral constant is useless; the constant is outside the range of type 'int' c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\GenerateMySQL.Utility.ttinclude 77 45 "
The actual error being thrown is:
Error 2 Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.TextTemplatingEC7AD8F9FBE0E4583F2618228C4182E3CCEE1C700F320D1F98B9908646EAFA8024A750223ACC9C5A71B36A0AEE5FD12A02298E7F752E89E2BAE365DAC8A8BB03.GeneratedTextTransformation.GetProviderManifestToken(String edmxPath) in c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\GenerateMySQL.Utility.ttinclude:line 142
at Microsoft.VisualStudio.TextTemplatingEC7AD8F9FBE0E4583F2618228C4182E3CCEE1C700F320D1F98B9908646EAFA8024A750223ACC9C5A71B36A0AEE5FD12A02298E7F752E89E2BAE365DAC8A8BB03.GeneratedTextTransformation.TransformText() in c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\SSDLToMySQL.tt:line 121 c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\GenerateMySQL.Utility.ttinclude 142 1
Thank you
-Kyle
with Microsoft .NET Framework 4.5.50709 with Entity Framework version 5.0.0.0
with Oracle MySQL Connector 6.7.4.0 with runtime version 4.0.30319
I have 3 entities (tables) inside of a .edmx (Entity) model with many scalar properties and an association between the entities.
Upon using the context menu (via right click) in an attempt to "Generate Database from Model" I receive a rather long error message, which is at the bottom of the post.
In my entity model, I have added the reference "MySql.Data.Entity" and changed the DDL Generation Template to "SSDLToMySQL.tt (VS)," as per the documentation for the MySQL Connector Net. The model is a "ConceptualEntityModel" currently, but the same error occurs if no type is chosen (the default).
Checking the error list also shows a warning: "Compiling transformation: Comparison to integral constant is useless; the constant is outside the range of type 'int' c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\GenerateMySQL.Utility.ttinclude 77 45 "
The actual error being thrown is:
Error 2 Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.TextTemplatingEC7AD8F9FBE0E4583F2618228C4182E3CCEE1C700F320D1F98B9908646EAFA8024A750223ACC9C5A71B36A0AEE5FD12A02298E7F752E89E2BAE365DAC8A8BB03.GeneratedTextTransformation.GetProviderManifestToken(String edmxPath) in c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\GenerateMySQL.Utility.ttinclude:line 142
at Microsoft.VisualStudio.TextTemplatingEC7AD8F9FBE0E4583F2618228C4182E3CCEE1C700F320D1F98B9908646EAFA8024A750223ACC9C5A71B36A0AEE5FD12A02298E7F752E89E2BAE365DAC8A8BB03.GeneratedTextTransformation.TransformText() in c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\SSDLToMySQL.tt:line 121 c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen\GenerateMySQL.Utility.ttinclude 142 1
Thank you
-Kyle