You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
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
The text was updated successfully, but these errors were encountered: