entity framework core - Cannot override OnConfiguring in beta5 - no suitable method found to override -
after updating ef7 beta5 beta4 onconfiguring stopped working.
protected override void onconfiguring(dbcontextoptionsbuilder optionsbuilder) i can't figure out need write instead.
here's project.json, in case
{ "dependencies": { "entityframework.sqlserver": "7.0.0-beta5", "entityframework.commands": "7.0.0-beta5", ... } } it doesn't have "entityframework": "7.0.0-beta4" (no beta5 yet). apparently isn't needed.
dnvm list
active version runtime architecture location alias ------ ------- ------- ------------ -------- ----- 1.0.0-beta4 clr x64 c:\users\snebjorn\.dnx\runtimes 1.0.0-beta4 clr x86 c:\users\snebjorn\.dnx\runtimes 1.0.0-beta4 coreclr x64 c:\users\snebjorn\.dnx\runtimes 1.0.0-beta4 coreclr x86 c:\users\snebjorn\.dnx\runtimes * 1.0.0-beta5 clr x86 c:\users\snebjorn\.dnx\runtimes default 1.0.0-beta5-12103 clr x86 c:\users\snebjorn\.dnx\runtimes
you need use entityoptionsbuilder in beta 5 (and dbcontextoptionsbuilder in beta 6)
Comments
Post a Comment