473,385 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Generic Data Access Layer

Hello,

I need to feed UI controls (DataList, GridView etc) using XML or SQL Server.
What would be a "good practice" to access these two types of data sources?
Is ObjectDataSource a good choice?

I would appreciate any links to websites describing a Data Access Layer
suitable for various types of data sources.

Thanks,
Leszek
Aug 1 '07 #1
3 2033
On Aug 1, 3:49 pm, "TarTar" <spam.s...@lovely.spamwrote:
Hello,

I need to feed UI controls (DataList, GridView etc) using XML or SQL Server.
What would be a "good practice" to access these two types of data sources?
Is ObjectDataSource a good choice?

I would appreciate any links to websites describing a Data Access Layer
suitable for various types of data sources.

Thanks,
Leszek
Try Microsoft's Enterprise Library: http://msdn2.microsoft.com/en-us/library/aa480453.aspx

Aug 3 '07 #2
On Aug 1, 10:49 pm, "TarTar" <spam.s...@lovely.spamwrote:
Hello,

I need to feed UI controls (DataList, GridView etc) using XML or SQL Server.
What would be a "good practice" to access these two types of data sources?
Is ObjectDataSource a good choice?

I would appreciate any links to websites describing a Data Access Layer
suitable for various types of data sources.

Thanks,
Leszek
You should do all that operations on a diferent layer, and pass arrays
of bussines objects to UI. In your dal layer, you make the proper
decitions about the datasource.
Enterprise library is a good starting point ;)
Best regards

Aug 3 '07 #3
Thanks a lot!
The Microsoft's Enterprise Library looks good.

In the meantime I have found the following sample application:
"Small Business Web Site - Starter Kit"
http://www.asp.net/downloads/starter...small-business

They use both SQL and XML data sources using custom providers that follow
the Provider pattern. Then they feed ObjectDataSource controls with the
collections generated by the providers.

Is this starter kit good? Did anyone try to use it in practice?

Thanks,
Leszek

"Cubaman" <os******************@googlemail.comwrote in message
news:11*********************@d55g2000hsg.googlegro ups.com...
On Aug 1, 10:49 pm, "TarTar" <spam.s...@lovely.spamwrote:
>Hello,

I need to feed UI controls (DataList, GridView etc) using XML or SQL
Server.
What would be a "good practice" to access these two types of data
sources?
Is ObjectDataSource a good choice?

I would appreciate any links to websites describing a Data Access Layer
suitable for various types of data sources.

Thanks,
Leszek

You should do all that operations on a diferent layer, and pass arrays
of bussines objects to UI. In your dal layer, you make the proper
decitions about the datasource.
Enterprise library is a good starting point ;)
Best regards

Aug 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
0
by: sedefo | last post by:
I ran into this Microsoft Patterns & Practices Enterprise Library while i was researching how i can write a database independent data access layer. In my company we already use Data Access...
1
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am...
1
by: dennis | last post by:
hello, I am using Oracle Stored Procedures to return and modify data in my application which is developed using ASP. NET(VB.NET). How are the SP's invoked from the application 1) Are they...
6
by: Robin | last post by:
Are there any generic classes available that can be used in VB.Net to perform common tasks such as Database Access and Logging?
0
by: Mathieu Cartoixa | last post by:
Hi, I have a simple 2-tiers (client+database) application with simple Domain Model objects The Data Access Layer is abstracted via Data Mappers which use Data Transfer Objects to communicate...
4
by: pratham | last post by:
Hi! I'm making a database application and i heard from a friend that it is more proffecional and easy to do this with bussines objects. Can anyone tell me where i can find more info on bussines...
0
by: D Lester | last post by:
I have recently create membership providers for several diferrent databases which has led me down this path of thought. I need to implement a data access layer for several different databases as...
10
by: phancey | last post by:
I'm quite new to generics. I have 2 generic classes: MyClass<Tand MyOtherClass<T>. MyClass<Thas 2 public Add methods Add(MyOtherClass<T>); Add(MyOtherClass<Wrapper<T>>); (Wrapper<Tis another...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.