4
我想先使用PowerTools對代碼進行反向工程。它適用於從本地MS-SQL數據庫進行逆向工程時,但不從Oracle DB進行逆向工程。我收到以下錯誤,在輸出控制檯:無法使用EFPowerTools Beta2對代碼優先進行反向工程VS2012
System.Data.ProviderIncompatibleException: The provider did not return a ProviderManifestToken string. ---> Oracle.DataAccess.Client.OracleException: ORA-1005: null password given; logon denied
at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
at Oracle.DataAccess.Client.OracleConnection.Open()
at Oracle.DataAccess.Client.EFOracleProviderServices.GetDbProviderManifestToken(DbConnection connection)
at System.Data.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)
--- End of inner exception stack trace ---
at System.Data.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)
at System.Data.Entity.Design.EntityStoreSchemaGenerator.GetProviderSchemaMetadataWorkspace(DbProviderServices providerServices, DbConnection providerConnection, Version targetEntityFrameworkVersion)
at System.Data.Entity.Design.EntityStoreSchemaGenerator.CreateStoreSchemaConnection(String providerInvariantName, String connectionString, Version targetEntityFrameworkVersion)
at System.Data.Entity.Design.SsdlGenerator.EntityStoreSchemaGeneratorDatabaseSchemaLoader.CreateStoreSchemaConnection(String providerInvariantName, String connectionString, Version& storeSchemaModelVersion)
at System.Data.Entity.Design.EntityStoreSchemaGenerator..ctor(String providerInvariantName, String connectionString, String namespaceName)
at Microsoft.DbContextPackage.Handlers.ReverseEngineerCodeFirstHandler.ReverseEngineerCodeFirst(Project project)
我可以做正常的一代通過右擊工程EF文件>添加> ADO.NET實體數據模型>選擇「從現有的DB」,並按照其餘的嚮導。我喜歡powertools更好,因爲幾個原因(主要是映射爲.cs文件)。爲什麼我在使用Oracle時不能進行逆向工程? TIA
ORA-1005:null給出的密碼;登錄被拒絕。看起來有一個密碼丟失。 –
我在嚮導中選擇了「使用特定的用戶名和密碼」,並填寫了兩個字段。我還可以單擊「測試連接」,然後收到成功消息。 – solidau
這有什麼用處? http://stackoverflow.com/questions/8563048/error-when-using-code-first-in-web-service-system-data-providerincompatibleexce –