DataSources. Should I use them? Need advice ...

S

shapper

Hello,

I have been trying the ObjectDataSource and LinqDataSource with Linq,
a DataPager and a ListView.

LinqDataSource has some restrictions but it is easier to use than
ObjectDataSource which on the other hand is less restrictive.

Should I even use a DataSource?

Is there any problem of defining all data connections in ListView
events?

I am almost taking the decision of using ObjectDataSource but
sometimes I wonder if I should not use these objects in my project.

Thanks,

Miguel
 
M

Michael Nemtsev [MVP]

Hello shapper,

LinqDataSource is good, only if you are playing with your project and try
to save some times, but LDS approach is not very good for the serious application
where you are usually using n-tiers systems.

I usually use LDS for the small project where Im not really concern about
design and the result is priority. For other cases ODS is preferable

Btw, there is an overview of LinqDataSource vs ObjectDataSource http://weblogs.asp.net/despos/archi...rce-vs-objectdatasource-vs-sqldatasource.aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


s> Hello,
s>
s> I have been trying the ObjectDataSource and LinqDataSource with Linq,
s> a DataPager and a ListView.
s>
s> LinqDataSource has some restrictions but it is easier to use than
s> ObjectDataSource which on the other hand is less restrictive.
s>
s> Should I even use a DataSource?
s>
s> Is there any problem of defining all data connections in ListView
s> events?
s>
s> I am almost taking the decision of using ObjectDataSource but
s> sometimes I wonder if I should not use these objects in my project.
s>
s> Thanks,
s>
s> Miguel
s>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top