Feeds:
Posts
Comments

Posts Tagged ‘ADO.NET’

Hi,
With Insert, Update and Delete methods but without a Select method, LinqDataSource control looks just like a chair with only three legs! Such a powerful and flexible control is used to get connected to a DataBound control like GridView, while it could excel in many scenarios if it had a Select method! For example, it [...]

Read Full Post »

Hi back,
In this post we will finalize the implementation of our 3-tier asp.net architecture, by developing a Web-based presentation layer.
So far, we have developed the data access and business layers. The implementation of UI, consists of methods and approaches for handling business and crud operations thorough a Web UI. In fact, there are several ways [...]

Read Full Post »

Up to now, we have finished implementing the data access layer. However, we can reduce the dependency between the deriver DAL classes and Web.config file. As you remember, we have specified the DB provider name in Web.config file so that DAL classes must have access to this file to read the provider name. Another method [...]

Read Full Post »

The Fill method we have developed so far, executes the Select command on the underlaying server and picks up RowCount records from startRowIndex position. For example, if Select * from Person returnS 20 rows, and startRowIndex is 0, only the first RowCount records will be fetched. This means that the complete result set will be [...]

Read Full Post »

Hi again,
Let’s keep on going and work on the Data Access Layer. The DAL layer we are going to design can be used with, theoretically, any sort of RDBMS because it will take advantage of ADO.NET generic classes. For this reason, I have written a base class for DAL classes and have placed in [...]

Read Full Post »

Hi again,
Nearly two years a go I probed Internet to find out a good reference architecture for my ASP.NET applications. What I meant GOOD ARCHITECTURE was an architecture that:

IS FAIRLY SIMPLE
IS BASED ON N-TIED ARCHITECTURE
IS PRODUCTIVE
IS EASY TO IMPLEMENT
DOES NOT NEED A NY 3rd PARTY CLASSES (I.E. NHIBERNATE)
CAN BE USED FOR A WIDE RANGE [...]

Read Full Post »

For some reasons I do like to use DataSets (and Datatables) rather than DataReaders or other sort of IList collections to hold a list of records. Especially, typed DataSets are very helpful and am intended to write some articles about exploiting them later in this weblog. For example we can fill DataTables’s data/metadata by retrieving [...]

Read Full Post »