c# - From SQL Server to Oracle using Entity Framework with code-first Migrations -
i'm told in our current project have use oracle instead of sql server.
i need make work. i've installed visual studio odtwithodac when try run command update-database in package manager console, following error thrown:
a null returned after calling 'get_providerfactory' method on store provider instance of type 'system.data.oracleclient.oracleconnection'. store provider might not functioning correctly.
i know problem not access db because connect via server explorer , took connection string it.
my connection string goes this:
<add name="lpsscontext" connectionstring="server=(description=(address=(protocol=tcp)(host=10.0.1.106)(port=1521))(connect_data=(service_name=orcl)));uid=sys;pwd=sys;" providername="system.data.oracleclient" /> any ideas what's wrong?
does oracle support code-first migrations?
currently there's no support cfm oracle connector. there's paid connector support though, http://blog.devart.com/entity-framework-code-first-migrations-support-for-oracle-mysql-postgresql-and-sqlite.html
the other option change db layer db first (with lots of work) manually, did
Comments
Post a Comment