N层数据应用相关问题 [英] N-Tier Data Application related Questions

查看:60
本文介绍了N层数据应用相关问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我是ADO.NET Sync Services的新手。我有同样的问题。



我检查的参考文献:



  1. http://msdn.microsoft.com/en-gb/library/bb384570.aspx (关于创建N层数据应用程序的演练)

    解决方案



    在设备项目中,你可以添加一个从 SyncAgent类。在本课程中我们可以提到

    1. Bidirectional

    2. DownloadOnly

    3. 快照

    4. UploadOnly

    例如:



    SyncTable customerSyncTable = new SyncTable < span style ="font-size:x-small; color:#a31515">" Customers" );

    customerSyncTable.CreationOption =



    TableCreationOption 。DropExistingOrCr eateNewTable;

    customerSyncTable.SyncDirection = Microsoft.Synchronization.Data。



    SyncDirection 。双向;

    customerSyncTable.SyncGroup = customerSyncGroup;





    。 Configuration.SyncTables.Add(customerSyncTable);


    一旦我知道剩下的我会告诉你。

    谢谢你Lakshmi Narayana




     

    Hi,

     

    I am new to Sync Services for ADO.NET. I have some questions around the same.

     

    References I checked :

    1. http://msdn.microsoft.com/en-gb/library/bb384570.aspx   (Walkthrough on Creating an N-Tier Data Application)

      解决方案

      Hi,

      In Device Project  you please add one class which is inherting from SyncAgent class. in this class  we can mention

      1.Bidirectional

      2.DownloadOnly

      3.Snapshot

      4.UploadOnly

      Ex :

       

      SyncTable customerSyncTable = new SyncTable("Customers");

      customerSyncTable.CreationOption =

      TableCreationOption.DropExistingOrCreateNewTable;

      customerSyncTable.SyncDirection = Microsoft.Synchronization.Data.

      SyncDirection.Bidirectional;

      customerSyncTable.SyncGroup = customerSyncGroup;

       

      this.Configuration.SyncTables.Add(customerSyncTable);


      Once I have idea on remaining I will let you know.

      Thanks
      Lakshmi Narayana


      这篇关于N层数据应用相关问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

      查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆