c# - Change Entity Framework provider in configuration -
i hoping able switch data providers to/from sql server , sql server compact edition via configuration change. doesnt work , looking @ edmx file think can see why:
<edmx:storagemodels> <schema ... provider="system.data.sqlclient" ...
is there way specify provider in app.config or @ runtime?
the storage-model tied specific provider, cause entity framework reject dbconnection implementations not compatible specified provider.
if @ entity framework connection-string, can see storageschema, modelschema , mapping specified in 3 different files (which generated .edmx , embedded in assembly). take .edmx apart , embed .ssdl, .csdl , .msl , create .ssdl sql server ce. copy & paste , replacing provider , column-types.
i wrote here: comparison entity framework
Comments
Post a Comment