×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

MS Application Block有几个, 不知你指哪一个?

本文发表在 rolia.net 枫下论坛Data Access Application Block : data access helper component, SqlHelper, Use it if you are using SQL Server as the database and wish to reduce the amount of data access code you write. Can use it internally in your own data access classes. Versions of SqlHelper for OleDb and Oracle written in C# are included in the Nile 3.0 sample application.

Exception Management Application Block : Use it as the basis for your exception handling framework. Ideal for applications that use exception chaining or wrapping and pass exceptions up the call stack. Custom publishers can be used to log exception information to shared databases.

Aggregation Application Block : Use it when your application needs to bring together data from various sources and those sources may change over time. The Aggregation Block serves to abstract the underlying data sources.

Asynchronous Invocation Application Block: Use it when the data sources your application communicates with may require a lengthy call. Using the Async Block makes it appear as if the application is more responsive by allowing Web pages to be built incrementally.

Caching Application Block : Use it when you need to cache data in Windows Forms or other non-Web based applications. ASP.NET provides its own cache and so would not typically be required for Web applications. Very useful for improving performance.

Configuration Management Application Block: Use it when your application might require its configuration data to be stored in different locations at different times. Also take advantage of it for encrypting sensitive information.

Updater Application Block : Use it when your application needs to auto-update with new assemblies or when you are writing a service to provide client machines with updates to a variety of applications.

User Interface Process Application Block : Use it when you need to implement the same process in different types of applications (Windows Forms, Web forms) or want to allow users to resume a session at a later time. Also ideal for wizard-based applications.更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 有人用过microsoft.applicationblock.data吗?
    • 没有。你最近很刻苦啊。:)
      • 什么呀。architect总是试图用最复杂的最专业的途径解决问题。我写出来的代码被否定了。非要自己创建一个dataset来更新数据库。因为用了micro applicationblock,我就不知道如何用datatablemapping了。:(
    • MS Application Block有几个, 不知你指哪一个?
      本文发表在 rolia.net 枫下论坛Data Access Application Block : data access helper component, SqlHelper, Use it if you are using SQL Server as the database and wish to reduce the amount of data access code you write. Can use it internally in your own data access classes. Versions of SqlHelper for OleDb and Oracle written in C# are included in the Nile 3.0 sample application.

      Exception Management Application Block : Use it as the basis for your exception handling framework. Ideal for applications that use exception chaining or wrapping and pass exceptions up the call stack. Custom publishers can be used to log exception information to shared databases.

      Aggregation Application Block : Use it when your application needs to bring together data from various sources and those sources may change over time. The Aggregation Block serves to abstract the underlying data sources.

      Asynchronous Invocation Application Block: Use it when the data sources your application communicates with may require a lengthy call. Using the Async Block makes it appear as if the application is more responsive by allowing Web pages to be built incrementally.

      Caching Application Block : Use it when you need to cache data in Windows Forms or other non-Web based applications. ASP.NET provides its own cache and so would not typically be required for Web applications. Very useful for improving performance.

      Configuration Management Application Block: Use it when your application might require its configuration data to be stored in different locations at different times. Also take advantage of it for encrypting sensitive information.

      Updater Application Block : Use it when your application needs to auto-update with new assemblies or when you are writing a service to provide client machines with updates to a variety of applications.

      User Interface Process Application Block : Use it when you need to implement the same process in different types of applications (Windows Forms, Web forms) or want to allow users to resume a session at a later time. Also ideal for wizard-based applications.更多精彩文章及讨论,请光临枫下论坛 rolia.net
      • data access helper component. 现在我需要create dataset, add new table, add new data column。然后更新数据库。因为用了data access helper,不能够使用datamapping。请问还有什么别的办法。typed dataset是否可以呢。
        • MM最近干了不少杀脑细胞的活呀,偶看着你都累,可怜的IT女孩。
          新年快乐! :))
          • 谢谢你,也祝你新年快乐。我也觉得累。:(
        • It seems that you can not add new table or add new data column dynamically with data access helper component, but not sure.
          • Now i am trying typed dataset. :(
            • My experience:
              Create your own class derived from DataSet, create new instance whenever you need and do update, add new or delete to your own dataset, then update database with SqlDataAdapter.Update method.
        • 要是更新数据库的话,应该先从数据库获取数据,填充dataset,更新dataset,然后再更新数据库吧?
          • 这样可能会增加数据库负担。所以不行。:(
            • 更新是在源数据的基础上做修改吧?源数据是从数据库服务器提出来的,难道不用源数据?
              • Insert,开始并不需要数据源。
                • 为什么要舍本逐末,绕一个大圈的insert,直接用sql语句不行吗?
                  • 不能直接insert,因为这些数据来自于另外一个entity1,要经过处理,生成新的entity2,在entity2里面建立一个typed dataset,用于存储数据,并更新数据库。
                    • 其实我一直觉得dataset这个东东适合retrive不适合update,想想在没有dataset的时候,难道同样的事情就做不了了?
                      • 因为要逐条处理数据,这样insert,architect主要考虑到可以减轻数据库负担。不过我现在其实还不知道能否实现,因为用了data access application block.
                        • 那你应该先作一下测试,用dataset insert 一堆数据和用一般的sql 语句通过loop来insert比较一下,看看差别到底有多少,值不值。其实要效率,还不如通过shell来运行bcp之类的命令。
                          • 不是简单的处理,而是要通过一个xml写的数据引擎。而且如果规则改变,xml文件也要变化。//因为使用data access application block,dataadapter看不见,不知道typed dataset是否足够聪明到知道更新那个表。
                            • 不知道你的具体情况,就不乱发言了。不过我觉得,有时候code写多点,比用一些包裹了一层又一层的控件或class要心里有底。
                              • 谢谢你。我还有一个有关windows service的问题。你如果还不睡觉的话,我就up起来问问你?
                                • ok
                  • 我发信给你,你好像收不到?
                    • 我rolia的信箱?我都不记得是什么了。