• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 602
  • Last Modified:

Using xsd or write my own data access layer?

Ok, i've found lots of example over the net that use "xsd" to access the database information.

Why should i use "xsd" to access my database information instead of writing my own database access inside my DAL (Data access layer, using sqlconnection)?

I'm working with "Connection Pool" and large amount of data.

Performance is really important in my application.
Time to develop custom code is not a concern.

What should i do?
Thanks

0
jabcoco
Asked:
jabcoco
  • 2
2 Solutions
 
Gyanendra SinghArchitectCommented:
0
 
prairiedogCommented:
>>>Why should i use "xsd" to access my database information instead of writing my own database access inside my DAL (Data access layer, using sqlconnection)?
No one says you have to use "xsd". Of course you can write your own DAL with different means. One of the advantages of using 'xsd" is that it creates strong-typed datasets, which is recommeded than general datasets.

>>>Time to develop custom code is not a concern.
Then you can write your own, and it helps you understand more about multi-tiered application development.
>>>Performance is really important in my application.
I don't know if using 'xsd' will have lower performance than using your own DAL, it depends on lots of factors.
There are also several tools that builds DAL and BAL for you automatically, such as Code Smith, and SubSonic. You can check them out if you are interested.
0
 
jabcocoAuthor Commented:
After reading more article on the net I've finally decide to write my own "Business Objects".

Prairiedog: Yes.. writing my own code will help me understand more about multi-tiered and having controls over what i'm doing.

Articles:
Ref #1 http://aspnet.4guysfromrolla.com/demos/printPage.aspx?path=/articles/050405-1.aspx
Ref #2 http://richnewman.wordpress.com/2007/04/22/reasons-not-to-use-tableadapters-in-net-20/
Ref #3 http://forums.asp.net/t/1231450.aspx

Thanks guys!
0
 
jabcocoAuthor Commented:
Thanks experts! :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now