Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EntityFramework CodeFirst error creating database with firebird embeded 2.5.5.26952 [DNET665] #620

Closed
firebird-automations opened this issue Jan 17, 2016 · 2 comments

Comments

@firebird-automations
Copy link

Submitted by: Eugene Leontev (eugene_l)

Duplicates DNET664

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 DNET664

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Duplicate [ 3 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue duplicates DNET664 [ DNET664 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants