Description:
I have the latest connectors installed for the EF using VS2013
which ever stored procedure I import i get the following error
Unable to generate the model because of the following exception: 'System.InvalidCastException: Unable to cast object of type 'System.Boolean' to type 'System.String'.
at System.Data.DataTableReader.GetString(Int32 ordinal)
at Devart.Data.MySql.Entity.ai.a(Int32 A_0)
at Devart.Common.Entity.b8.GetValue(Int32 ordinal)
at lambda_method(Closure , Shaper )
at System.Data.Entity.Core.Common.Internal.Materialization.RecordState.GatherData(Shaper shaper)
at lambda_method(Closure , Shaper )
at System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)
at System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()
at System.Data.Entity.Core.Query.ResultAssembly.BridgeDataReader.SetShaper(Shaper`1 shaper, CoordinatorFactory`1 coordinatorFactory, Int32 depth)
at System.Data.Entity.Core.Query.ResultAssembly.BridgeDataReader.<>c__DisplayClass4.<.ctor>b__0()
at System.Data.Entity.Core.Query.ResultAssembly.BridgeDataReader.EnsureInitialized()
at System.Data.Entity.Core.Query.ResultAssembly.BridgeDataReader.Read()
at System.Data.Entity.Core.EntityClient.EntityDataReader.Read()
at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.FunctionDetailsReader.Read()
at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadFunctionDetails(IEnumerable`1 filters)
at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadStoreSchemaDetails(IList`1 filters)
at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.GetStoreSchemaDetails(StoreSchemaConnectionFactory connectionFactory)
at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.CreateStoreModel()
at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.GenerateModel(List`1 errors)
at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelBuilderEngine.GenerateModels(String storeModelNamespace, ModelBuilderSettings settings, List`1 errors)
at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelBuilderEngine.GenerateModel(ModelBuilderSettings settings, IVsUtils vsUtils, ModelBuilderEngineHostContext hostContext)'.
Loading metadata from the database took 00:00:07.0422075.
Generating the model took 00:01:19.1832074.
How to repeat:
Import stored procs in the EF using latest connectors available at MySql website using VS2013