zoukankan      html  css  js  c++  java
  • Scott doesn't use datasets in ASP .NET Applications

    Scott doesn't use datasets in ASP .NET Applications

     

    By Eric Wise

    I generally prefer business objects and collections thereof for a good chunk of my ASP .NET applications.  This is mostly because by extending business objects with properties, methods, and events I can gain a level of control that isn't possible with the dataset.  Using a datareader to populate these objects is fast and easy.

     

    However... in the case where I am just displaying data, such as binding results to a combo box or showing a summary grid, I tend to use a datatable or dataset.

    ……

    URL: http://codebetter.com/blogs/eric.wise/archive/2005/05/02/62743.aspx

     

    ***

    I have almost the same ideas with this guy. In the meanwhile, I also support the following idea.

     

    Any DataLayer must be a simple code block, that they allow operations against DB.

    That code block would not have to know on the Business Entities. Single to specialize it is to execute the operations (Store Procedures and SQL Sentences) against the engine DB (SQL, Oracle, DB2, etc.), with which this setting.

  • 相关阅读:
    [LeetCode]Linked List Cycle
    ACM 整数划分(四)
    ACM 子串和
    ACM 阶乘之和
    ACM 组合数
    ACM 阶乘的0
    ACM 比大小
    ACM 擅长排列的小明
    ACM 重建二叉树
    cocos2dx 魔塔项目总结(一)
  • 原文地址:https://www.cnblogs.com/rickie/p/458093.html
Copyright © 2011-2022 走看看