gbacache.server.cs

来自「microsoft synchronization sample for Ora」· CS 代码 · 共 31 行

CS
31
字号
namespace GBAServerSyncProvider {
    
    
    public partial class GBACacheServerSyncProvider {
        
        partial void OnInitialized(){
            this.ApplyChangeFailed += new System.EventHandler<Microsoft.Synchronization.Data.ApplyChangeFailedEventArgs>(GBACacheServerSyncProvider_ApplyChangeFailed);
            this.ApplyingChanges += new System.EventHandler<Microsoft.Synchronization.Data.ApplyingChangesEventArgs>(GBACacheServerSyncProvider_ApplyingChanges);
            this.ChangesSelected += new System.EventHandler<Microsoft.Synchronization.Data.ChangesSelectedEventArgs>(GBACacheServerSyncProvider_ChangesSelected);
            this.ChangesApplied += new System.EventHandler<Microsoft.Synchronization.Data.ChangesAppliedEventArgs>(GBACacheServerSyncProvider_ChangesApplied);
        }

        void GBACacheServerSyncProvider_ApplyChangeFailed(object sender, Microsoft.Synchronization.Data.ApplyChangeFailedEventArgs e)
        {
            //Handle conflicts here;
        }
        void GBACacheServerSyncProvider_ChangesApplied(object sender, Microsoft.Synchronization.Data.ChangesAppliedEventArgs e)
        {
            // Code that should be run after changes have been commited to the database;
        }
        void GBACacheServerSyncProvider_ChangesSelected(object sender, Microsoft.Synchronization.Data.ChangesSelectedEventArgs e)
        {
            // Add business rule validation for changes that should be applied before sending data to the client;
        }
        void GBACacheServerSyncProvider_ApplyingChanges(object sender, Microsoft.Synchronization.Data.ApplyingChangesEventArgs e)
        {
            // Add business rule validation, before applying changes to the server;
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?