c# - EF Reverse POCO Generator: Failed to load provider EntityClient -
i'm using entityframework reverse poco generator in vs2012
vs2012...
here's connection string:
<connectionstrings> <add name="entities" connectionstring="metadata=res://*/model1.csdl|res://*/model1.ssdl|res://*/model1.msl;provider=system.data.sqlserverce.4.0;provider connection string="data source=c:\somedatabase.sdf"" providername="system.data.entityclient" /> </connectionstrings>
installed nuget entityframework.sqlservercompact installed entity framework 6.1.0 tools visual studio added system.data.entity references updated .tt file point connectionstring , error (warning) when save::
warning 1 running transformation: failed load provider "system.data.entityclient" - unable find requested .net framework info provider. may not installed.
so not generating code. ideas?
here's snippet of database.tt file:
<#@ include file="ef.reverse.poco.core.ttinclude" #> <# // v2.5.0 // please create changes settings below. // have save file, , output file(s) is/are generated. compiling not regenerate file(s). // misc settings ********************************************************************************************************************** // namespace = ""; // override default namespace here dbcontextname = "mycontext"; connectionstringname = "entities"; // searches connection string in config files listed below configurationclassname = "configuration"; // configuration, mapping, map, etc. appended poco class name configure mappings. configfilenamesearchorder = new[] { "app.config", "web.config", "app.config.transform", "web.config.transform" }; // add together more here if required. config files searched in local project first, whole solution second. makeclassespartial = true; ...
found answer, problem in connectionstring
should follows:
<connectionstrings> <add name="entities" connectionstring="data source=c:\storecontainer.sdf" providername="microsoft.sqlserverce.client.4.0" /> </connectionstrings>
c# visual-studio-2012 sql-server-ce poco entity-framework-6
No comments:
Post a Comment