.NET Standard 2.0 / EntityFrameworkCore / DB2 / IBM.EntityFrameworkCore issue -
does here has experience ibm.entityframeworkcore package? i've created .net standard 2.0 library project in vs2017, added mentioned package, , tried make work following this , this tutorial ibm website, no luck. project compiled, @ runtime i'm getting system.typeloadexception
following message:
method 'applyservices' in type 'ibm.entityframeworkcore.infrastructure.internal.db2optionsextension' assembly 'ibm.entityframeworkcore, version=1.1.1.101, culture=neutral, publickeytoken=7c307b91aa13d208' not have implementation.
any appreciated!
thanks!
update: exception happens try use context. means after context created, before dbcontext.onconfiguring
call happens.
i've solved it. turned out exception happens if actual entity types (i.e. mytype
) aren't defined in same assembly (project) context. in solution had entity types defined in 1 project, , dbcontext
defined in different project, references first one, of course.
the reason me have such design in fact there 2 different packages (depending on actual os): ibm.entityframeworkcore , ibm.entityframeworkcore-lnx. i've created 2 different projects, each referencing 1 of these packages. still, wanted have entity types defined once... cannot work that.
update: sadly, turned out isn't issue. i've ran one, described here. thumbs down db2 .net team! it's frustrating work with...
Comments
Post a Comment