[英]How to create Local database cache in VS2012?
There are several threads about this,. 关于这个,有几个主题。 but i have so far been unable to find any solution. 但到目前为止我一直无法找到任何解决方案。
I am trying to create a local database (SQL Server CE) that will sync with a SQL Server database (SQL Server 2012). 我正在尝试创建一个将与SQL Server数据库同步的本地数据库(SQL Server CE)(SQL Server 2012)。
Simple, add a local database cache to your project in VS. 很简单,在VS中为项目添加本地数据库缓存。 Nopes, MS has acknowledged that the missing Local Database Cache in VS2012 is a bug, but for the last year they seem to have done nothing to fix it. Nopes,MS已经承认VS2012中缺少的本地数据库缓存是一个错误,但在去年他们似乎没有采取任何措施来解决它。
It is becoming increasingly unclear to me whether CE 4.0 even supports any form of synchronisation, MS simply states it doesn't, some sites say it's easy to implement (but they skip 7 steps towards that so i don;t consider that any solution). 我越来越不清楚CE 4.0是否支持任何形式的同步,MS只是声明它没有,有些网站说它很容易实现(但他们跳过了7个步骤,所以我不考虑任何解决方案) 。
I have installed ErikEJ's SQL Server Compact Toolbox from http://sqlcetoolbox.codeplex.com/releases/view/80269 but it will not let me add a Local Database Cache (The generate local database cache option is there, but it is grayed out???) 我已经从http://sqlcetoolbox.codeplex.com/releases/view/80269安装了ErikEJ的SQL Server Compact Toolbox,但它不允许我添加本地数据库缓存(生成本地数据库缓存选项在那里,但它是灰色的???)
It mentioned that options were unavailable because SQL Server CE 3.5 was not installed, so I installed that as well (next to SQL Server CE 4.0) 它提到选项不可用,因为没有安装SQL Server CE 3.5,所以我也安装了它(在SQL Server CE 4.0旁边)
I still cannot select "Generate Local Database Cache", and selecting either a 4.0 or 3.5 SQL Server CE database, I see the "Sync Framework Tools" option, but the three items under it are... again grayed out. 我仍然无法选择“生成本地数据库缓存”,并选择4.0或3.5 SQL Server CE数据库,我看到“同步框架工具”选项,但它下面的三个项目是......再次显示为灰色。
I am slowly getting to the point of losing my pacifistic nature... 我正在慢慢地走向失去我和平主义的本质......
Is there anybody who could point me into a direction that would enable me to (simply???) sync my data between a client SQL Server CE database and a master SQL Server DB? 有没有人可以指出我的方向,使我(简单地)在客户端SQL Server CE数据库和主SQL Server数据库之间同步我的数据?
A sub-question that might lead to something: would anyone know why the option to "Create Local Database Cache" in the SQL Server Compact Toolbox is grayed out, disabled, impossible to use, although in every screenshot i see it is happily enabled? 一个可能导致某些问题的子问题:是否有人知道为什么SQL Server Compact Toolbox中的“创建本地数据库缓存”选项显示为灰色,禁用,无法使用,尽管在每个屏幕截图中我都看到它很高兴启用? Edit: This has been solved by installing Sync Framework 2.1 (4.0 has been discontinued for ages, so it seems we need to go back to 2.1. I am slowly starting to lose my sense of time - and my sanity :( ) 编辑:这已经通过安装Sync Framework 2.1解决了(4.0已经停止了很长时间,所以我们似乎需要回到2.1。我慢慢开始失去我的时间感 - 我的理智:()
这似乎在visual studio 2008中有所作为,2012年和2013年的所有选项都缺少本地数据库和本地数据库缓存
you can install the plug in for SQL Compact edition for visual studio 2012 and 2013 from visual studio gallery 您可以从visual studio gallery安装适用于Visual Studio 2012和2013的SQL Compact版插件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.