Sorry, i missed that the trigger does not exist in localcachedata. I want to work with local data offline but at the first synch when online i want the synchronization to send all the data to server. But because lasteditdate does not change when a row updates, at first sychit gets all data from server overwrtiting changes made while offline."SyncDirection" does not change anything. But if i can put tiggers in local data(SQl server ce) they can change lasteditdate while working offline.
ServisPersonelCacheSyncAgent syncAgent = new ServisPersonelCacheSyncAgent();
syncAgent.PERSONEL.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.UploadOnly;
SyncStatistics syncStats = syncAgent.Synchronize();
And also the "Save" works without a problem. It saves the entity to local database successfully.