You are on page 1of 9

1.

remove any previous installation of SQLite and enity framwork


2. download
http://system.data.sqlite.org/downloads/1.0.98.0/sqlite-netFx451-setupbundle-x86-2013-1.0.98.0.exe

3. Install the downloaded exe , make sure is for .NET 4.5.1


/************************Notes ***********************************************
(Setups for 32-bit Windows (.NET Framework 4.5.1)
sqlite-netFx451-setup-bundle-x86-2013-1.0.98.0.exe
(10.23 MiB)

This setup package features the mixed-mode

assembly and will install all the necessary runtime components


and dependencies for the x86 version of the
System.Data.SQLite 1.0.98.0 (3.8.11.1) package.
The Visual C++ 2013 Update 2 runtime for x86 is
included. The .NET Framework 4.5.1 is required.
This is the only setup package that is capable of
installing the design-time components for Visual Studio 2013.

However, if you do not require the design-time components,


please consider downloading the associated "Precompiled Binaries" instead.

Using Entity Framework 6 design-time support may require


installing the Visual Studio 2013 "flavor" of the Entity
Framework 6 Tools for Visual Studio 2012 & 2013
********************************* End Notes
**************************************/

4. create winform project, make sure using DotNet4.51

5. NuGet: install the first one from searching : System.Data.SQLite (x86/x64)

6. Open Server Explorer/Data Connection

7. Install the SQLite DDEX provide


Installing the Visual Studio 2013 "flavor" of the Entity Framework 6 Tools for
Visual Studio 2012 & 2013.

Entity Framework 6 Tools for Visual Studio 2012 & 2013:


https://www.microsoft.com/en-us/download/details.aspx?id=40762
(EFTools6.1.3ForVS2013.msi)
8. From the project , right click on add new item, select Data, you will see

Use it to create EDMX file 9model first file ) , You will see

Next>>

Netx>>

Netx>>

It will generate all models selected from tbales:

9. Project configurations:

Package config:

<?xml version="1.0" encoding="utf-8"?>


<configuration>
<configSections>
<!-- For 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=6.0.0.0,
Culture=neutral,
PublicKeyToken=b77a5c561934e089"
requirePermission="false"
/>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite.EF6" />
<add name="SQLite
Data Data
Provider
(Entity
6)" invariant="System.Data.SQLite.EF6"
description=".NET
Framework
Provider
forFramework
SQLite System.Data.SQLite.EF6"
(Entity
Framework 6)"
type="System.Data.SQLite.EF6.SQLiteProviderFactory,
/>
</DbProviderFactories>
</system.data>

You might also like