如何在Visual Studio 2013中为sqlite配置实体框架6 [英] how to configure entity framework 6 for sqlite in visual studio 2013

查看:60
本文介绍了如何在Visual Studio 2013中为sqlite配置实体框架6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio 2013中为Sqlite配置实体框架6.x.我想使用Entity Framework 6.x为SqLite配置win-form应用程序.我需要逐步说明该过程.

我尝试了一些解决方案,但没有人能直接满足特定的系统要求.有一些类似的问题,但是他们都要求解决他们的问题.我的观点是,我想要一个分步整齐的过程来做到这一点,以便人们可以直截了当地解决这个问题.

当前,我已经从

在页面上搜索: 32位Windows(.NET Framework 4.5.1)的设置并下载VS 2013捆绑软件(表示这是唯一以粗体字安装VS 2013软件包的工具).

确保将DLL保存到GAC并安装设计时组件(这确实需要一些时间).

启动VS.

您现在应该可以将连接添加到SQLite数据库文件.

How can I configure entity framework 6.x for Sqlite in Visual Studio 2013. I want to configure my win-form application for SqLite with Entity Framework 6.x. I need process step by step described.

I tried some solutions, but no one is straight forward for the specific system requirement. There is some questions similar this, but in all they are asking to resolve their problem. My point is that, I want a neat step by step process to do this, so that people can get a straight forward way for this thing.

Currently I have installed data provided for .net framework 4.5.1 from here and entity framework 6.0.2 for Sqlite from nuget. But when I am adding Ado.Net Entity Data Model, there is no provider listed for Sqlite db connection.

解决方案

Close VS.

Go to this page: http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

Search for this on the page: Setups for 32-bit Windows (.NET Framework 4.5.1) and download the bundle for VS 2013 (The one that sais it's the only one that installs the packages for VS 2013 in bold letters).

Make sure to save the DLLs to GAC and to install the design time components (this does take some time).

Start VS.

You should be able to add connections to an SQLite database file now.

这篇关于如何在Visual Studio 2013中为sqlite配置实体框架6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆