简体   繁体   English

System.Data.SQLite与VS 2013的设计时集成

[英]System.Data.SQLite design-time integration with VS 2013

I have installed the System.Data.SQLite.Core package with NuGet as described in the System.Data.SQLite at FAQ: (5) Is there a NuGet package? 我已经使用NuGet安装了System.Data.SQLite.Core包,如FAQ中的System.Data.SQLite中所述:(5)是否有NuGet包? .

How can I enable the design-time support in Visual Studio 2013? 如何在Visual Studio 2013中启用设计时支持?

在此输入图像描述

Apparently, at least as of version 1.0.93, the NuGet packages do not provide the designer components. 显然,至少从1.0.93版本开始,NuGet软件包不提供设计器组件。

Only the bundle available on the System.Data.SQLite Download Page installs the necessary components: 只有System.Data.SQLite下载页面上提供的软件包才会安装必要的组件:

sqlite-netFx451-setup-bundle-x86-2013-1.0.93.0.exe 源码-netFx451-设置束-x86-2013-1.0.93.0.exe

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.93.0 (3.8.5) package. 此安装程序包具有混合模式程序集,并将为x86版本的System.Data.SQLite 1.0.93.0(3.8.5)程序包安装所有必需的运行时组件和依赖项。 The Visual C++ 2013 Update 2 runtime for x86 is included. 包含x86的Visual C ++ 2013 Update 2运行时。 The .NET Framework 4.5.1 is required. .NET Framework 4.5.1是必需的。 This is the only setup package that is capable of installing the design-time components for Visual Studio 2013. 这是唯一能够安装Visual Studio 2013设计时组件的安装程序包。

设定

And now the option is available when adding a connection: 现在添加连接时可以使用该选项:

源码

I don't know if you got it to work, but for me your steps were only half the story. 我不知道你是否有这个工作,但对我来说,你的步骤只是故事的一半。 A lot of additional fiddling around was required to generate an EDMX. 生成EDMX需要大量额外的摆弄。 Posted the steps here: Database first create entity framework 6.1.1 model using system.data.sqlite 1.0.93 发布这里的步骤: 数据库首先使用system.data.sqlite 1.0.93创建实体框架6.1.1模型

Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM