I have a problem using dotnet connect for Oracle. I've created a small console test project in VS2015 using the .NETCore template and the devart EFCore connector.
I always got an System.MissingMethodException, after the build was finished and the application started. The related error message is "Method not found: 'Devart.Common.DbCommandBase Devart.Common.DbCommandBase.InternalClone()'". The exception is fired after context.Database.EnsureCreated() is called.
I am using net462 as framework in project.json and "Devart.Data.Oracle.EFCore" in version "9.5.399".
If I switch to netstandard1.6 as main framework in project.json, the test project will be working properly. But I have to use net461 and EFCore.
Project.json:
Code: Select all
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true,
"copyToOutput": {
"include": [ "configuration.json"]
}
},
"dependencies": {
"NETStandard.Library": "1.6.1",
"Microsoft.NETCore.Portable.Compatibility": "1.0.1",
"Microsoft.EntityFrameworkCore": "1.1.5",
"Newtonsoft.Json": "10.0.3",
"Microsoft.EntityFrameworkCore.Relational": "1.1.3",
"System.Runtime": "4.3.0",
"Devart.Data.Oracle.EFCore": "9.5.399"
},
"frameworks": {
"net461": {}
},
"runtimes": { "win7-x64": {} }
}