Home All Groups Group Topic Archive Search About

where should i place DAAB (v2.0)?

Author
19 Mar 2006 6:37 PM
Elhanan
hi...

i have a non GUI application and been trying DAAB with typed dataset,
looks cool (after i calm down wondering how can i use typed datasets
with DAAB)..


now i'm wondering, where should i place DAAB calls? should i create
distinct class just for them?

or since it IS allready the datalayer can it be called by other objects
? (for example an abstract factory class, returin classes filled from
the datasets).

Author
19 Mar 2006 6:58 PM
Triax
Good n-tier design says that you put the DAAB calls in your business logic
layer:

Presentation layer
Business layer
Database layer

That way you can isolate your DAAB calls from the Presentation layer.


--
Matt Noonan
EasyObjects.NET: The O/RM for the Enterprise Library
http://www.easyobjects.net


Show quote
"Elhanan" <emaa***@hotmail.com> wrote in message
news:1142793434.794369.256780@v46g2000cwv.googlegroups.com...
> hi...
>
> i have a non GUI application and been trying DAAB with typed dataset,
> looks cool (after i calm down wondering how can i use typed datasets
> with DAAB)..
>
>
> now i'm wondering, where should i place DAAB calls? should i create
> distinct class just for them?
>
> or since it IS allready the datalayer can it be called by other objects
> ? (for example an abstract factory class, returin classes filled from
> the datasets).
>
Author
20 Mar 2006 7:57 AM
Elhanan
thanks, actually i have no presenation layer, it's all behind scenes
part.

btw can cast/load a typed dataset from a dataset?

let's say i have a abstract class which has a method that accepts a
dataset, since it's abstract it should be more abstract in the dataset
sense, on the concret class i wish load it into a types dataset.
Author
21 Mar 2006 2:55 AM
Robbe Morris [C# MVP]
This technique has worked well for me:

http://www.eggheadcafe.com/articles/dotnet_generics_application_layers.asp

--
Robbe Morris - 2004-2006 Microsoft MVP C#
Earn money answering .NET questions
http://www.eggheadcafe.com/forums/merit.asp





Show quote
"Elhanan" <emaa***@hotmail.com> wrote in message
news:1142793434.794369.256780@v46g2000cwv.googlegroups.com...
> hi...
>
> i have a non GUI application and been trying DAAB with typed dataset,
> looks cool (after i calm down wondering how can i use typed datasets
> with DAAB)..
>
>
> now i'm wondering, where should i place DAAB calls? should i create
> distinct class just for them?
>
> or since it IS allready the datalayer can it be called by other objects
> ? (for example an abstract factory class, returin classes filled from
> the datasets).
>

AddThis Social Bookmark Button