|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
where should i place DAAB (v2.0)?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). 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. 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). > 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. This technique has worked well for me:
http://www.eggheadcafe.com/articles/dotnet_generics_application_layers.asp -- Show quoteRobbe Morris - 2004-2006 Microsoft MVP C# Earn money answering .NET questions http://www.eggheadcafe.com/forums/merit.asp "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). > |
|||||||||||||||||||||||