Page 1 of 1

Method not found

Posted: Wed 28 Aug 2013 15:30
by fmacedoo
Hi,

I'm trying to make a little project using dotconnect mysql and entity framework code first, but i'm stuck on a problem that occurs when running a migration.

Code: Select all

Method not found: 'System.Collections.Generic.ICollection`1<System.Data.Entity.Migrations.Model.ColumnModel> System.Data.Entity.Migrations.Model.CreateTableOperation.get_Columns()'.
   em Devart.Common.Entity.Migrations.f.a(CreateTableOperation A_0)
   em Devart.Data.MySql.Entity.Migrations.e.a(CreateTableOperation A_0)
   em Devart.Common.Entity.Migrations.f.a(MigrationOperation A_0)
   em Devart.Common.Entity.Migrations.f.a(IEnumerable`1 A_0)
   em Devart.Common.Entity.Migrations.c.a(IEnumerable`1 A_0, String A_1)
   em Devart.Data.MySql.Entity.Migrations.MySqlEntityMigrationSqlGenerator.Generate(IEnumerable`1 migrationOperations, String providerManifestToken)
   em System.Data.Entity.Migrations.DbMigrator.GenerateStatements(IList`1 operations, String migrationId)
   em System.Data.Entity.Migrations.Infrastructure.MigratorBase.GenerateStatements(IList`1 operations, String migrationId)
   em System.Data.Entity.Migrations.DbMigrator.ExecuteOperations(String migrationId, XDocument targetModel, IEnumerable`1 operations, IEnumerable`1 systemOperations, Boolean downgrading, Boolean auto)
   em System.Data.Entity.Migrations.DbMigrator.ApplyMigration(DbMigration migration, DbMigration lastMigration)
   em System.Data.Entity.Migrations.Infrastructure.MigratorBase.ApplyMigration(DbMigration migration, DbMigration lastMigration)
   em System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
   em System.Data.Entity.Migrations.Infrastructure.MigratorBase.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
   em System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)
   em System.Data.Entity.Migrations.DbMigrator.<>c__DisplayClassc.<Update>b__b()
   em System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
   em System.Data.Entity.Migrations.Infrastructure.MigratorBase.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
   em System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
   em System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update()
   em System.Data.Entity.MigrateDatabaseToLatestVersion`2.InitializeDatabase(TContext context)
   em System.Data.Entity.Internal.InternalContext.<>c__DisplayClasse`1.<CreateInitializationAction>b__d()
   em System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
   em System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
   em System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c)
   em System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
   em System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
   em System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase()
   em System.Data.Entity.Internal.InternalContext.Initialize()
   em System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
   em System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
   em System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
   em System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()
   em System.Linq.Queryable.Count[TSource](IQueryable`1 source)
   em ConsoleApplication1.Program.Main(String[] args) na c:\Users\Filipe\Desktop\ConsoleApplication1\ConsoleApplication1\Program.cs:line 21
   em System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   em System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   em Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   em System.Threading.ThreadHelper.ThreadStart()
See the project on the link below:
https://docs.google.com/file/d/0B3u1biW ... sp=sharing

Re: Method not found

Posted: Tue 03 Sep 2013 14:57
by Shalex
Your project uses Entity Framework 6 RC1 which will be supported by dotConnect for MySQL starting from the next public build. We will post here when it is available for download.

As a temporary workaround, please employ Entity Framework 6 Beta 1.

Re: Method not found

Posted: Fri 06 Sep 2013 09:13
by Shalex
New version of dotConnect for MySQL 7.8 is released!
It can be downloaded from http://www.devart.com/dotconnect/mysql/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=2&t=27878.