PC Review


Reply
Thread Tools Rate Thread

Data Component, Data Layer

 
 
Matt
Guest
Posts: n/a
 
      4th Jan 2007
I am developing couple intranet site. Cant decide what to use to get
the Data
I will be using Data Layer to get,update, insert, delete and report
type queries..
Most expensive table will have 1 mil records.. Just a couple of tables
will have that amount of data..

What would be affecient to use between
1. Code behind to call SqlDataAdapter,SqlConnection,SqlCommand,DataSet
etc
2. Table Adapters with DataSet connected to Database
3. Own Writen Data.cs like dataComponent somesort..
4. Enterprise Library January 2006, Application Data Block

 
Reply With Quote
 
 
 
 
Karthik D V
Guest
Posts: n/a
 
      4th Jan 2007

Matt wrote:
> I am developing couple intranet site. Cant decide what to use to get
> the Data
> I will be using Data Layer to get,update, insert, delete and report
> type queries..
> Most expensive table will have 1 mil records.. Just a couple of tables
> will have that amount of data..
>
> What would be affecient to use between
> 1. Code behind to call SqlDataAdapter,SqlConnection,SqlCommand,DataSet
> etc
> 2. Table Adapters with DataSet connected to Database
> 3. Own Writen Data.cs like dataComponent somesort..
> 4. Enterprise Library January 2006, Application Data Block


If you are doing the modification on huge records, then #1 is the
better, if you are using the data only for display purpose then #3.

 
Reply With Quote
 
sloan
Guest
Posts: n/a
 
      4th Jan 2007

See

5/24/2006
Custom Objects/Collections and Tiered Development

6/5/2006
Custom Objects and Tiered Development II // 2.0


at:

http://sholliday.spaces.live.com/blog/


You can substitute the EnterpriseLibrary block where I have the SqlHelper
class.

The examples show how to write your own data layer, using SqlHelper (or
EnterpriseLibrary ) as the ~~~helper class.




"Matt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am developing couple intranet site. Cant decide what to use to get
> the Data
> I will be using Data Layer to get,update, insert, delete and report
> type queries..
> Most expensive table will have 1 mil records.. Just a couple of tables
> will have that amount of data..
>
> What would be affecient to use between
> 1. Code behind to call SqlDataAdapter,SqlConnection,SqlCommand,DataSet
> etc
> 2. Table Adapters with DataSet connected to Database
> 3. Own Writen Data.cs like dataComponent somesort..
> 4. Enterprise Library January 2006, Application Data Block
>



 
Reply With Quote
 
Matt
Guest
Posts: n/a
 
      4th Jan 2007
Any other thought code behind vs Blocks vs Component modelize cs..
Pros and Cons ?

Thanks



On Jan 4, 10:53 am, "sloan" <s...@ipass.net> wrote:
> See
>
> 5/24/2006
> Custom Objects/Collections and Tiered Development
>
> 6/5/2006
> Custom Objects and Tiered Development II // 2.0
>
> at:
>
> http://sholliday.spaces.live.com/blog/
>
> You can substitute the EnterpriseLibrary block where I have the SqlHelper
> class.
>
> The examples show how to write your own data layer, using SqlHelper (or
> EnterpriseLibrary ) as the ~~~helper class.
>
> "Matt" <meteha...@Hotmail.com> wrote in messagenews:(E-Mail Removed)...
>
>
>
> > I am developing couple intranet site. Cant decide what to use to get
> > the Data
> > I will be using Data Layer to get,update, insert, delete and report
> > type queries..
> > Most expensive table will have 1 mil records.. Just a couple of tables
> > will have that amount of data..

>
> > What would be affecient to use between
> > 1. Code behind to call SqlDataAdapter,SqlConnection,SqlCommand,DataSet
> > etc
> > 2. Table Adapters with DataSet connected to Database
> > 3. Own Writen Data.cs like dataComponent somesort..
> > 4. Enterprise Library January 2006, Application Data Block- Hide quoted text -- Show quoted text -


 
Reply With Quote
 
sloan
Guest
Posts: n/a
 
      4th Jan 2007

There is a difference between rapid development and good development.

I side on good development, not rapid development.

The new "built in" stuff with the aspx code behind for database connectivity
is "rapid' in my book.
Fine for demo's or prototypes, not good for a software solution.

If you create a DataLayer object, and that object uses SqlHelper or
EnterpriseLibrary to "help" with data access, you're building a reusable
component, and its much easier to maintain.

In my sample, I think I have something like

OrderData
or
CustomerData

classes.

As the blog states, this returns IDataReaders, DataSets , scalars or voids.

The downloadable code is sitting there to learn from. The better you
architect up front, the more time you'll save in the long run.




"Matt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Any other thought code behind vs Blocks vs Component modelize cs..
> Pros and Cons ?
>
> Thanks
>
>
>
> On Jan 4, 10:53 am, "sloan" <s...@ipass.net> wrote:
> > See
> >
> > 5/24/2006
> > Custom Objects/Collections and Tiered Development
> >
> > 6/5/2006
> > Custom Objects and Tiered Development II // 2.0
> >
> > at:
> >
> > http://sholliday.spaces.live.com/blog/
> >
> > You can substitute the EnterpriseLibrary block where I have the

SqlHelper
> > class.
> >
> > The examples show how to write your own data layer, using SqlHelper (or
> > EnterpriseLibrary ) as the ~~~helper class.
> >
> > "Matt" <meteha...@Hotmail.com> wrote in

messagenews:(E-Mail Removed)...
> >
> >
> >
> > > I am developing couple intranet site. Cant decide what to use to get
> > > the Data
> > > I will be using Data Layer to get,update, insert, delete and report
> > > type queries..
> > > Most expensive table will have 1 mil records.. Just a couple of tables
> > > will have that amount of data..

> >
> > > What would be affecient to use between
> > > 1. Code behind to call SqlDataAdapter,SqlConnection,SqlCommand,DataSet
> > > etc
> > > 2. Table Adapters with DataSet connected to Database
> > > 3. Own Writen Data.cs like dataComponent somesort..
> > > 4. Enterprise Library January 2006, Application Data Block- Hide

quoted text -- Show quoted text -
>



 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      4th Jan 2007
"sloan" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...

> The new "built in" stuff with the aspx code behind for database
> connectivity
> is "rapid' in my book.
> Fine for demo's or prototypes, not good for a software solution.


In fact I would venture to say that, when compared to a decent DAL, the new
SqlDataSource stuf is actually *slower* to develop with...

"New" doesn't always mean "better", IMO...

An example of this is the CustomValidator stuff - I've never found anything
in that that I couldn't do quicker and easier with my own JavaScript
validation scripts...


 
Reply With Quote
 
sloan
Guest
Posts: n/a
 
      5th Jan 2007
//
In fact I would venture to say that, when compared to a decent DAL, the new
SqlDataSource stuf is actually *slower* to develop with...

"New" doesn't always mean "better", IMO...
//


Amen.




"Mark Rae" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "sloan" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>
> > The new "built in" stuff with the aspx code behind for database
> > connectivity
> > is "rapid' in my book.
> > Fine for demo's or prototypes, not good for a software solution.

>
> In fact I would venture to say that, when compared to a decent DAL, the

new
> SqlDataSource stuf is actually *slower* to develop with...
>
> "New" doesn't always mean "better", IMO...
>
> An example of this is the CustomValidator stuff - I've never found

anything
> in that that I couldn't do quicker and easier with my own JavaScript
> validation scripts...
>
>



 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      5th Jan 2007
"sloan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> In fact I would venture to say that, when compared to a decent DAL, the
> new
> SqlDataSource stuf is actually *slower* to develop with...
>
> "New" doesn't always mean "better", IMO...


I couldn't agree more!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What do Data Access Layer and Data Object Layer mean and related? =?Utf-8?B?UGV0ZXI=?= Microsoft Dot NET 3 27th Jun 2007 08:44 AM
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft VB .NET 6 20th Dec 2006 02:16 AM
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft C# .NET 2 19th Dec 2006 09:23 AM
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft ASP .NET 1 18th Dec 2006 11:35 PM
Decorator pattern for data layer component Einar Høst Microsoft C# .NET 2 12th Jul 2004 02:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:18 AM.