Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ObjectDataSource SelectMethod TypeName returning a Dataset? is this really a DAL?

Thread Tools

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

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

Pardon my misguided email on the subject...

I'm working in 2.0 and 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
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 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.

Reply With Quote

Thread Tools

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
ObjectDataSource and SelectMethod question Froefel ASP .Net 0 07-17-2007 11:45 AM
ObjectDataSource: Value of session variable never passed to defined SelectMethod Roger ASP .Net 1 01-10-2007 11:57 PM
Q: typename or not typename? Jakob Bieling C++ 2 03-14-2006 03:44 PM
Wrong parameter being passed from an ObjectDataSource's SelectMethod Damon ASP .Net 2 02-03-2006 01:08 AM
ObjectDataSource.SelectMethod with variable number of parms cenbka ASP .Net Datagrid Control 0 12-08-2005 09:54 PM