microsoft-sync-framework

Microsoft Sync Framework clashes with Nhibernate TooManyRowsAffectedexception

旧街凉风 提交于 2019-12-19 03:25:11
问题 We are trying to implement the Microsoft Sync Framework into our application that persists it's domain using NHibernate. One of the problems we encountered is that after the Sync Framework has altered your initial database structure (adding shadow tables and triggers) NHibernate seems to get upset by throwing an toomanyrowsaffectedexception when you try to insert objects into the database. I found this article that has the solution of adding SET NOCOUNT ON and OFF around each update statement

Can you sync CoreData with iCloud?

喜夏-厌秋 提交于 2019-12-18 10:29:37
问题 does anyone know if and how you can sync CoreData apps with iCloud? If I understand the Apple iCould instructions right you can not sync CoreData, can you? 回答1: Given that you tagged this with Cocoa, I suggest that you watch the video for WWDC 2011 Session 315 - "What's New in Core Data on Mac OS X". For iOS, check out Session 303 - "What's New in Core Data on iOS". These will answer all of your questions regarding Core Data and iCloud. Since this is still under NDA, that's the most I can

Does Anyone Have Experience Creating an Occasionally-Connected Browser App With NHibernate?

拟墨画扇 提交于 2019-12-13 12:33:43
问题 We need to make our enterprise ASP.NET/NHibernate browser-based application able to function when connected to or disconnected from the customer's server. Has anyone done this? If so, how did you do it? (Technology, architecture, etc.) Background: We develop and sell an enterprise browser-based application used by construction field personnel to enter timesheet information. Currently, it requires a connection to the server back in the customer's office and we'd like to build an occasionally

Microsoft Sync Framework for SQL Server and Azure, master-slave?

空扰寡人 提交于 2019-12-13 06:21:01
问题 How does synching between sql server and sql azure databases work if I use Sync Framework? Does it have a master-slave rule? Or Does it send bidirectional data in between connection and appends changes to one another? 回答1: it's up to you, you can hub-spoke (master-slave) or peer-to-peer... you can do upload only, download only or bidirectional. see: Synchronizing SQL Azure and if you want an n-tier setup, have a look at this one as well: Walkthrough of Windows Azure Sync Service Sample Or if

Sync files between loacl folder and remote server using sync framework and wcf

我是研究僧i 提交于 2019-12-13 02:49:50
问题 I have a system which needs to sync images with a website and my local machine. After google I have found the best way is use microsoft synchonization framework. It is greatly support sync files between same machine or within same network. But my requirement is sync with internet location. I found this article describe a scenario remote file sync. article And they have provided a sample code as well. sample. But that code only generated a.metadata, a.replicaid and a.store files in location.

Is Microsoft Sync Framework alive?

混江龙づ霸主 提交于 2019-12-12 10:36:17
问题 According to the MS documentation Sync Framework Toolkit (https://code.msdn.microsoft.com/Sync-Framework-Toolkit-4dc10f0e) is a legacy open source product which MS no longer support: https://msdn.microsoft.com/en-us/library/jj839436(v=sql.110).aspx That's fine, but how about Microsoft Sync SDK which is not open source? Does it mean that open source part useless because server part can be removed by MS in the future? The question is does it mean that Sync Framework SDK (Server side library) is

How use Sync Framework to sync tables that are recreated with mostly the same data?

怎甘沉沦 提交于 2019-12-12 06:32:15
问题 I already did a program that uses Sync Framework to sync some tables from Azure to OnPremise (Local Server). I made the program following this example: How to: Configure and Execute Synchronization with SQL Azure. It works incredible fast with tables that his changes are new rows. The new rows are sync perfect. The first sync takes hours but now all the syncs take seconds. But we have other tables that are deleted and recreated with mostly the same data (99% is the old and 1% is new data).

how do I create a DbSyncForeignKeyConstraint to a table with a composite Primary Key

时光毁灭记忆、已成空白 提交于 2019-12-12 04:46:27
问题 I am trying to create a DbSyncForeignKeyConstraint to a table with a composite Primary Key but, I keep getting errors. Here is some sample code to demonstrate what I am doing: EXAMPLE TABLES: USE [TempTest] GO CREATE TABLE [dbo].[Users]( [UserId] [uniqueidentifier] NOT NULL, CONSTRAINT [PK_Users] PRIMARY KEY CLUSTERED ( [UserId] ASC ) WITH ( PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON ) ON [PRIMARY] ) ON [PRIMARY] CREATE

Sync Framework and add columns

一世执手 提交于 2019-12-12 03:57:10
问题 Well, i'm probing Sync Framework 2.1. It worked great, until i altered a table and added a column. There's a lot written about the theme. Here is my approach Alter table and add a column in the databases (master, and slaves) rename tracking tables (ex, from todos_tracking to todos_tracking_back) Drop the original providing scope create a new scope with the same name as the former, skipping the creation of tracking tables rename tracking tables to the original name (ex, from todos_tracking

LocalInsertRemoteInsert conflicts on initial sync

一曲冷凌霜 提交于 2019-12-12 00:24:03
问题 I am trying to implement unidirectional sync from Server to Client, both running SQLExpress 2008 using Sync Framework 2.1. I'm having trouble during initial sync. Two scopes are defined on the server: Scope1 contains tables A, B, C and Scope2 contains tables B, C, D Before the initial sync, the client database contains tables A, B, C and D (imported using a script), and each table is empty. Database has been provisioned using the server's scope information for Scope1 and Scope2, using default