﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Selective Data Sync</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Selective-Data-Sync/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Selective Data Sync</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Selective-Data-Sync/</link><pubDate>Mon, 08 Sep 2014 22:52:47 GMT</pubDate><dc:creator>yudi</dc:creator><category>Data Sync</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I'd like to confirm whether you are about to use your existing WebApi project with the code first approach data sync?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Look forward to hearing back from you.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Selective Data Sync</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Selective-Data-Sync/</link><pubDate>Sat, 06 Sep 2014 03:51:00 GMT</pubDate><dc:creator>goldytech</dc:creator><category>Data Sync</category><description>&lt;p&gt;Hi Yudi,&lt;/p&gt;&lt;p&gt;Thanks for your reply.&lt;/p&gt;&lt;p&gt;In the same context similiar to entity am I also binded to use generated code for Web Api. &amp;nbsp;I already have existing WebApi with OData V4 which is used by my Web App. Can't I use the same without relying on generated code by CrossLight&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Selective Data Sync</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Selective-Data-Sync/</link><pubDate>Thu, 04 Sep 2014 04:27:21 GMT</pubDate><dc:creator>yudi</dc:creator><category>Data Sync</category><description>&lt;blockquote&gt;&lt;p&gt;I want to enable the Data Sync of the selective fields only.&lt;/p&gt;&lt;p&gt;My main SQL Server table consists of many fields which I don't want at SQLite, becuase those are irrevelant and does not make any utilization on the mobile app.&lt;/p&gt;&lt;p&gt;But when I generate edmx from my existing database the entire fields code gets generated. How can I restrict that ?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Actually, you can removes the irrelevant field and keep the rest after generate edmx. Simply by open the edmx file in Visual Studio; click on the property that will be removed; and press delete button.&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;Also data sync is supported with Database First approach only , what if I want to use code first in EF 6.1&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Synchronization feature in Crosslight depends with the architecture which is prepared in Crosslight. They are for example:&lt;/span&gt;&lt;/p&gt;
&lt;ul style="color: #1f497d;"&gt;&lt;li&gt;Model must inherits from EntityBase class&lt;br&gt;eg.:&lt;br&gt;&lt;pre&gt;public partial class MyClass : EntityBase
{

}&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Each properties of the entities needs to be defined like following:&lt;br&gt;&lt;pre&gt;[PrimaryKey]
[MaxLength(128)]
public string DeviceTokenId 
{ 
	get { return (string)this.GetValue(DeviceTokenIdPropertyMetadata); } 
	set { this.SetValue(DeviceTokenIdPropertyMetadata, value); } 
}

[MaxLength(128)]
public string OperatingSystem 
{ 
	get { return (string)this.GetValue(OperatingSystemPropertyMetadata); } 
	set { this.SetValue(OperatingSystemPropertyMetadata, value); } 
}&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;In the Entity, after set Synchronization Date Property, a method will be created in Model controller class.&lt;br&gt;&lt;pre&gt;public SynchronizationResult SynchronizeChanges(JObject saveBundle)
{
    return db.SynchronizeChanges(saveBundle);
}&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;etc;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;For more detail, please check the Data Synchronization documentation in &lt;a href="http://developer.intersoftpt.com/display/crosslight/Data+Synchronization" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;As long as your code first approach meet this requirements, I think it is possible to use code first with Crosslight.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please let me know if you have other thoughts.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Selective Data Sync</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Selective-Data-Sync/</link><pubDate>Wed, 03 Sep 2014 07:40:15 GMT</pubDate><dc:creator>goldytech</dc:creator><category>Data Sync</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I want to enable the Data Sync of the selective fields only.&lt;/p&gt;&lt;p&gt;My main SQL Server table consists of many fields which I don't want at SQLite, becuase those are irrevelant and does not make any utilization on the mobile app.&lt;/p&gt;&lt;p&gt;But when I generate edmx from my existing database the entire fields code gets generated. How can I restrict&amp;nbsp;&lt;/p&gt;&lt;p&gt;that ?&lt;/p&gt;&lt;p&gt;Also data sync is supported with Database First approach only , what if I want to use code first in EF 6.1&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>