EF6 Alpha 3 support
Posted: Mon 08 Apr 2013 23:38
Hi,
I just upgraded EF6 from Alpha 2 to Alpha 3, and devart oracle provider from 7.5.164.0 to 7.7.217.0. Everything worked fine in the Alpha 2 + dcoracle75pro environment. now I'm having issue with __MigrationHistory table owner. The sql script generated by Alpha 2 + dcoracle75pro is
CREATE TABLE "__MigrationHistory" (
"MigrationId" NVARCHAR2(255) NOT NULL,
"ContextKey" NVARCHAR2(512) NOT NULL,
"Model" BLOB NOT NULL,
"ProductVersion" NVARCHAR2(32) NOT NULL,
PRIMARY KEY ("MigrationId", "ContextKey")
)
which works great when the login name is the table owner name.
The sql script generated by Alpha 3 + dcoracle77pro is
CREATE TABLE "azteca"."__MigrationHistory" (
"MigrationId" NVARCHAR2(255) NOT NULL,
"ContextKey" NVARCHAR2(512) NOT NULL,
"Model" BLOB NOT NULL,
"ProductVersion" NVARCHAR2(32) NOT NULL,
PRIMARY KEY ("MigrationId", "ContextKey")
)
which produces ORA-01918: user 'azteca' does not exist error. However, the following two scripts would work.
CREATE TABLE azteca."__MigrationHistory" (
"MigrationId" NVARCHAR2(255) NOT NULL,
"ContextKey" NVARCHAR2(512) NOT NULL,
"Model" BLOB NOT NULL,
"ProductVersion" NVARCHAR2(32) NOT NULL,
PRIMARY KEY ("MigrationId", "ContextKey")
)
CREATE TABLE "AZTECA"."__MigrationHistory" (
"MigrationId" NVARCHAR2(255) NOT NULL,
"ContextKey" NVARCHAR2(512) NOT NULL,
"Model" BLOB NOT NULL,
"ProductVersion" NVARCHAR2(32) NOT NULL,
PRIMARY KEY ("MigrationId", "ContextKey")
)
I added modelBuilder.HasDefaultSchema("AZTECA"); that doesn't help.
please help?
I just upgraded EF6 from Alpha 2 to Alpha 3, and devart oracle provider from 7.5.164.0 to 7.7.217.0. Everything worked fine in the Alpha 2 + dcoracle75pro environment. now I'm having issue with __MigrationHistory table owner. The sql script generated by Alpha 2 + dcoracle75pro is
CREATE TABLE "__MigrationHistory" (
"MigrationId" NVARCHAR2(255) NOT NULL,
"ContextKey" NVARCHAR2(512) NOT NULL,
"Model" BLOB NOT NULL,
"ProductVersion" NVARCHAR2(32) NOT NULL,
PRIMARY KEY ("MigrationId", "ContextKey")
)
which works great when the login name is the table owner name.
The sql script generated by Alpha 3 + dcoracle77pro is
CREATE TABLE "azteca"."__MigrationHistory" (
"MigrationId" NVARCHAR2(255) NOT NULL,
"ContextKey" NVARCHAR2(512) NOT NULL,
"Model" BLOB NOT NULL,
"ProductVersion" NVARCHAR2(32) NOT NULL,
PRIMARY KEY ("MigrationId", "ContextKey")
)
which produces ORA-01918: user 'azteca' does not exist error. However, the following two scripts would work.
CREATE TABLE azteca."__MigrationHistory" (
"MigrationId" NVARCHAR2(255) NOT NULL,
"ContextKey" NVARCHAR2(512) NOT NULL,
"Model" BLOB NOT NULL,
"ProductVersion" NVARCHAR2(32) NOT NULL,
PRIMARY KEY ("MigrationId", "ContextKey")
)
CREATE TABLE "AZTECA"."__MigrationHistory" (
"MigrationId" NVARCHAR2(255) NOT NULL,
"ContextKey" NVARCHAR2(512) NOT NULL,
"Model" BLOB NOT NULL,
"ProductVersion" NVARCHAR2(32) NOT NULL,
PRIMARY KEY ("MigrationId", "ContextKey")
)
I added modelBuilder.HasDefaultSchema("AZTECA"); that doesn't help.
please help?