asp.net - Fail to create db with entity framework 7 on ubuntu 14.04 -
i'm following following tutorial:
and came across problem using entity framework create new database app. running command dnx ef migrations add myfirstmigration
throws me error:
system.io.fileloadexception: not load file or assembly 'keepitsolved, culture=neutral, publickeytoken=null' or 1 of dependencies. general exception (exception hresult: 0x80131500) file name: 'keepitsolved, culture=neutral, publickeytoken=null' ---> microsoft.dnx.compilation.csharp.roslyncompilationexception: /home/demo/kistest/src/keepitsolved/migrations/20160414215220_initialmigration.cs(17,74): dnxcore,version=v5.0 error cs0103: name 'sqlservervaluegenerationstrategy' not exist in current context /home/demo/kistest/src/keepitsolved/migrations/20160414215220_initialmigration.cs(69,74): dnxcore,version=v5.0 error cs0103: name 'sqlservervaluegenerationstrategy' not exist in current context /home/demo/kistest/src/keepitsolved/migrations/20160414215220_initialmigration.cs(89,74): dnxcore,version=v5.0 error cs0103: name 'sqlservervaluegenerationstrategy' not exist in current context /home/demo/kistest/src/keepitsolved/migrations/20160414215220_initialmigration.designer.cs(18,69): dnxcore,version=v5.0 error cs0103: name 'sqlservervaluegenerationstrategy' not exist in current context /home/demo/kistest/src/keepitsolved/migrations/solvedcontextmodelsnapshot.cs(17,69): dnxcore,version=v5.0 error cs0103: name 'sqlservervaluegenerationstrategy' not exist in current context /home/demo/kistest/src/keepitsolved/models/solvedcontext.cs(29,19): dnxcore,version=v5.0 error cs1061: 'dbcontextoptionsbuilder' not contain definition 'usesqlserver' , no extension method 'usesqlserver' accepting first argument of type 'dbcontextoptionsbuilder' found (are missing using directive or assembly reference?) /home/demo/kistest/src/keepitsolved/startup.cs(71,18): dnxcore,version=v5.0 error cs1061: 'entityframeworkservicesbuilder' not contain definition 'addsqlserver' , no extension method 'addsqlserver' accepting first argument of type 'entityframeworkservicesbuilder' found (are missing using directive or assembly reference?) @ microsoft.dnx.compilation.csharp.roslynprojectreference.load(assemblyname assemblyname, iassemblyloadcontext loadcontext) @ microsoft.dnx.compilation.compilationengine.loadproject(project project, frameworkname targetframework, string aspect, iassemblyloadcontext loadcontext, assemblyname assemblyname) @ microsoft.dnx.runtime.loader.projectassemblyloader.load(assemblyname assemblyname, iassemblyloadcontext loadcontext) @ microsoft.dnx.runtime.loader.projectassemblyloader.load(assemblyname assemblyname) @ microsoft.dnx.host.loadercontainer.load(assemblyname assemblyname) @ microsoft.dnx.host.defaultloadcontext.loadassembly(assemblyname assemblyname) @ microsoft.dnx.runtime.loader.assemblyloadercache.getoradd(assemblyname name, func2 factory) @ microsoft.dnx.runtime.loader.loadcontext.load(assemblyname assemblyname) @ system.runtime.loader.assemblyloadcontext.loadfromassemblyname(assemblyname assemblyname) @ system.runtime.loader.assemblyloadcontext.resolve(intptr gchmanagedassemblyloadcontext, assemblyname assemblyname) @ system.reflection.runtimeassembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) @ system.reflection.runtimeassembly.internalloadassemblyname(assemblyname assemblyref, evidence assemblysecurity, runtimeassembly reqassembly, stackcrawlmark& stackmark, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) @ system.reflection.assembly.load(assemblyname assemblyref) @ microsoft.data.entity.design.internal.startupinvoker..ctor(string startupassemblyname, string environment) @ microsoft.data.entity.design.dbcontextoperations..ctor(iloggerprovider loggerprovider, string assemblyname, string startupassemblyname, string environment) @ microsoft.data.entity.design.migrationsoperations..ctor(iloggerprovider loggerprovider, string assemblyname, string startupassemblyname, string environment, string projectdir, string rootnamespace) @ microsoft.data.entity.commands.program.executor.<>c__displayclass4_1.<.ctor>b__4() @ microsoft.data.entity.internal.lazyref`1.get_value() @ microsoft.data.entity.commands.program.executor.<>c__displayclass6_0.b__0() @ microsoft.data.entity.commands.program.executor.execute(action action) not load file or assembly 'keepitsolved, culture=neutral, publickeytoken=null' or 1 of dependencies. general exception (exception hresult: 0x80131500)
here's link github repository: https://github.com/ziombo/keepitsolved
Comments
Post a Comment