c# - SQLite and Entity Framework configuration -
im trying set sqlite database layer tests , im not getting how config file should written (wasnt able find documentation this). seems duplicate configuration on file, people write db factories entityframework section, in system.data section.
this current configuration file:
<?xml version="1.0" encoding="utf-8"?> <configuration> <configsections> <!-- more information on entity framework configuration, visit http://go.microsoft.com/fwlink/?linkid=237468 --> <section name="entityframework" type="system.data.entity.internal.configfile.entityframeworksection, entityframework, version=5.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" requirepermission="false" /> </configsections> <connectionstrings> <add name="swechancontext" connectionstring="data source=:memory:; new=true; version=3" providername="system.data.sqlite" /> </connectionstrings> <system.data> <dbproviderfactories> <add name="sqlite data provider" invariant="system.data.sqlite" description="sqlite" type="system.data.sqlite.sqlitefactory, system.data.sqlite" /> </dbproviderfactories> </system.data> </configuration>
Comments
Post a Comment