ObjectDataSource SelectMethod TypeName returning a Dataset? is this really a DAL?

J

jobs

re: ObjectDataSource SelectMethod TypeName returning a Dataset? is
this really a DAL?

Pardon my misguided email on the subject...

I'm working in asp.net 2.0 and vb.net 2005.

Say I don't want any SQL code in my presentation layer, and I want all
my SQL operations accessable through methods I've developed in vb.net
of a class I will conviently call MyDAL.

So I will have methods like DeleteIT(), UpdateIT(), InsertIT() .. but
what about GetAllOfIT()??

What should GetAllOfThis return? I ask because many of the examples
out there for DAL are in C# and return what seems like a generic type
and are defined as such:

public Lis<IT> GetAllOffIT() { ... }

with TYPENAME = "IT"

and i suspect the comparable code in vb.net is :

Public Shared Function GetAllofIT() As Generic.List(IT)


and provided there is a class of IT, the TYPENAME of the
ObjectDataSource would be set to "IT".

But, say I don't want to have a class of IT and i don't want to use
Generics. What should my function return so that I can still use
ObjectDataSource, and does it even make any sense to use
ObjectDataSource if I won't be creating a Generic Object (and did I
even say that correctly)? LOL. And even if this is all possible, that
is, all custom methods doing all the sql operations, with no custom
class object for the entity - would this be consider typical?
acceptable or good coding?

Thanks for any help or information! especially any simple code
example of use of ObjectDatasource with a selectmethod and typeName
returning something like a Dataset or a DataTable.
 

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,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top