EntityFramework CodeFirst error creating database with firebird embeded 2.5.5.26952 -----------------------------------------------------------------------------------
Key: DNET-665 URL: http://tracker.firebirdsql.org/browse/DNET-665 Project: .NET Data provider Issue Type: Bug Components: Entity Framework support Affects Versions: 4.9.0.0 Environment: Firebird Entity Framework Provider 4.9.0, Firebird ADO.NET Data provider 4.9.0 and EntityFramework 6.1.3 with a Firebird 2.5.5.26952 database server (embeded) Reporter: Eugene Leontev Assignee: Jiri Cincura I'm trying to create simple embedded .fdb database using CodeFirst approach of EntityFramework. Nothing special, just 1 simple table and all code is from EF tutorials (http://www.entityframeworktutorial.net/code-first/simple-code-first-example.aspx). But i got this incomprehensible and weird exception when call db.Database.CreateIfNotExists(): The type of the SQL statement could not be determined. Statement: -- Tables -- Foreign Key Constraints -- EOF. StackTrace: FirebirdSql.Data.Isql.FbScript.Parse() в C:\\Users\\Jiri\\Documents\\devel\\NETProvider\\working\\NETProvider\\src\\FirebirdSql.Data.FirebirdClient\\Isql\\FbScript.cs:line 110\r\n in FirebirdSql.Data.EntityFramework6.FbProviderServices.DbCreateDatabase(DbConnection connection, Nullable`1 commandTimeout, StoreItemCollection storeItemCollection) in C:\\Users\\Jiri\\Documents\\devel\\NETProvider\\working\\NETProvider\\src\\FirebirdSql.Data.FirebirdClient\\FirebirdClient\\FbProviderServices.cs:line 417\r\n in System.Data.Entity.Migrations.Utilities.DatabaseCreator.Create(DbConnection connection)\r\n in System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)\r\n in System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)\r\n в System.Data.Entity.Internal.DatabaseCreator.CreateDatabase(InternalContext internalContext, Func`3 createMigrator, ObjectContext objectContext)\r\n in System.Data.Entity.Database.CreateIfNotExists()\r\n в ISPochtamptAuthomatic.DB.DBHelper.CreateEmbeddedDataBase(ConnectionParams cparams) в E:\\Programming\\WokSpace\\C#\\WorkSpace\\UFPS Reports\\Report\\DB\\DBHelper.cs:line 104" P.S. DBHelper.cs:line 104 is db.Database.CreateIfNotExists(); P.S.S. possible duplicate http://tracker.firebirdsql.org/browse/DNET-664 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider