473,795 Members | 3,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DAL-Example

hello

until now i allways wrote all my sql-stuff in my presentation-layer.
i heard about that model of that presentation- / businesslogic- and data
access layer -model.
i found some example on the internet, but not very useful.
does anyone has some examples for this ???

i would by very happy !!!

thanks a lot !

jonas knaus

jo*********@nav iti.ch

Nov 15 '05 #1
6 7695
http://msdn.microsoft.com/library/de...ml/daab-rm.asp
"Jonas Knaus" <jo*********@ho tmail.com> wrote in message
news:ut******** ******@TK2MSFTN GP12.phx.gbl...
hello

until now i allways wrote all my sql-stuff in my presentation-layer.
i heard about that model of that presentation- / businesslogic- and data
access layer -model.
i found some example on the internet, but not very useful.
does anyone has some examples for this ???

i would by very happy !!!

thanks a lot !

jonas knaus

jo*********@nav iti.ch

Nov 15 '05 #2
Also, very close to the same URL as previously posted:
http://msdn.microsoft.com/library/de...271&frame=true

A whole ton of info.
If you click on Architectural Topics then Architectural Sample Applications
you'll find about 9 samples (IBuySpy, PetShop etc.)
--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"William Ryan" <do********@com cast.nospam.net > wrote in message
news:eR******** ******@TK2MSFTN GP12.phx.gbl...
http://msdn.microsoft.com/library/de...ml/daab-rm.asp "Jonas Knaus" <jo*********@ho tmail.com> wrote in message
news:ut******** ******@TK2MSFTN GP12.phx.gbl...
hello

until now i allways wrote all my sql-stuff in my presentation-layer.
i heard about that model of that presentation- / businesslogic- and data
access layer -model.
i found some example on the internet, but not very useful.
does anyone has some examples for this ???

i would by very happy !!!

thanks a lot !

jonas knaus

jo*********@nav iti.ch


Nov 15 '05 #3
You can use RapTier to generate all DAOs (Data Access Objects) and VOs
(Value Objects) automatically for you.
"Jonas Knaus" <jo*********@ho tmail.com> wrote in message
news:ut******** ******@TK2MSFTN GP12.phx.gbl...
hello

until now i allways wrote all my sql-stuff in my presentation-layer.
i heard about that model of that presentation- / businesslogic- and data
access layer -model.
i found some example on the internet, but not very useful.
does anyone has some examples for this ???

i would by very happy !!!

thanks a lot !

jonas knaus

jo*********@nav iti.ch

Nov 15 '05 #4
"Jonas Knaus" <jo*********@ho tmail.com> wrote in news:utkWP25eDH A.2348
@TK2MSFTNGP12.p hx.gbl:
hello

until now i allways wrote all my sql-stuff in my presentation-layer.
i heard about that model of that presentation- / businesslogic- and data
access layer -model.
i found some example on the internet, but not very useful.
does anyone has some examples for this ???

i would by very happy !!!

thanks a lot !


See http://www.llblgen.com

FB

--
Get LLBLGen Pro, the new O/R mapper for .NET: http://www.llblgen.com
Nov 15 '05 #5
hi all

thanks for your informations !!!!

greetings
jonas

"Frans Bouma" <pe**********@x s4all.nl> schrieb im Newsbeitrag
news:Xn******** *************** **********@207. 46.248.16...
"Jonas Knaus" <jo*********@ho tmail.com> wrote in news:utkWP25eDH A.2348
@TK2MSFTNGP12.p hx.gbl:
hello

until now i allways wrote all my sql-stuff in my presentation-layer.
i heard about that model of that presentation- / businesslogic- and data
access layer -model.
i found some example on the internet, but not very useful.
does anyone has some examples for this ???

i would by very happy !!!

thanks a lot !


See http://www.llblgen.com

FB

--
Get LLBLGen Pro, the new O/R mapper for .NET: http://www.llblgen.com

Nov 15 '05 #6
I read through some of this documentation and I have a question about
connections. Is it better to keep the connection completely inside the DAL
and rely on connection pooling or should the DAL provide a way to use an
existing open connection? It seems if I want to run a procedure which
requires database read/writes from multiple objects, it would be more
efficient to use one database connection than several. This is a
performance vs. design issue - at least I think so. Also, if connection
pooling does solve the performance issue, is it database dependent? Does
SQL Server do connection pooling with dotNet better than Oracle?
Has anyone actually tested or seen test results of this?

Thanks,
Steve

"Michael Mayer" <mi**@mag37.com > wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Also, very close to the same URL as previously posted:
http://msdn.microsoft.com/library/de...271&frame=true
A whole ton of info.
If you click on Architectural Topics then Architectural Sample Applications you'll find about 9 samples (IBuySpy, PetShop etc.)
--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"William Ryan" <do********@com cast.nospam.net > wrote in message
news:eR******** ******@TK2MSFTN GP12.phx.gbl...

http://msdn.microsoft.com/library/de...ml/daab-rm.asp
"Jonas Knaus" <jo*********@ho tmail.com> wrote in message
news:ut******** ******@TK2MSFTN GP12.phx.gbl...
hello

until now i allways wrote all my sql-stuff in my presentation-layer.
i heard about that model of that presentation- / businesslogic- and data access layer -model.
i found some example on the internet, but not very useful.
does anyone has some examples for this ???

i would by very happy !!!

thanks a lot !

jonas knaus

jo*********@nav iti.ch



Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2687
by: Marc Castrechini | last post by:
First off this is a great reference for passing data between the Data Access and Business Layers: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/Anch_EntDevAppArchPatPrac.asp I use my own classes in the Business layer. I want to keep the Data Access layer from requiring these classes so I tried passing a Datarow between the layers and it seems to work good for me. Constructing the datarow in the Class...
11
2570
by: Peter M. | last post by:
Hi all, I'm currently designing an n-tier application and have some doubts about my design. I have created a Data Access layer which connects to the database (SQL Server) and performs Select, update, delete and inserts. I use dataset objects to pass data to and from the DAL. In my GUI (windows forms), I use databinding to bind controls to a datatable
7
2925
by: Steve | last post by:
Hi all, I'm designing my DAL layer(s) for our suite of applications and I'm designing myself in circles, it's gotten to the point where each idea just mixes me up more :) We have 3 loosely related applications and I would like to use an assembly for the DAL in each of them. I have thought of using a single assembly for all of them with several different classes for providers/application specific code, thought of a separate assembly...
6
4076
by: dm1608 | last post by:
I'm relatively new to ASP.NET 2.0 and am struggling with trying to find the best naming convention for the BAL and DAL objects within my database. Does anyone have any recommendations or best practices for naming my objects? I currently have all my type classses simply called "JobSummaryClass" or "JobDetailsClass". These classes simply contain the public properties and the get/set functions for the object. Is this an appropriate naming...
3
8942
by: Jeff S | last post by:
Just wondering if it's standard practice to make DAL classes STATIC (in a Windows Forms). Doing so would make sense to me because DAL methods are typically called quite frequently - certainly the case for DAL "Helper" classes - plus DAL objects/classes generally maintain no state. Seems like a good case for STATIC classes to me. It has been recommended to me to put the entire DAL, into a separate .DLL. Is that standard practice too? ...
2
1874
by: Nemisis | last post by:
Hi all, I was wondering about where this code should go. Basically i have several tables in my database, when i add a row to a particular table, i will need to also add other entries in other tables. I would consider this to be code that should be in the BOL? Am i right in thinking that?
22
4329
by: Nemisis | last post by:
Hi everyone, i am creating my own DAL and BLL, and i am not using typed datasets. My problem is that in my DAL i have a Save method whos signiture looks something like: Save(ID as integer, name as string, .......
13
2071
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm designing the DAL (Data Access Layer) of my web application. I want every table to have a strongly typed object as wrapper arround the table. So that for example if the DAL found 3 records in the table then it sends a generic collection of 3 objects to the BLL (Business Logic Layer). But here is the problem:
11
9457
by: gnewsgroup | last post by:
First, just in case, BLL = Business Logic Layer and DAL = Data Access Layer. I guess this is really a question about architecture. I believe there are many architect here. Software architecture is sorta new to me. I searched a little and did find this: http://www.velocityreviews.com/forums/t300246-bll-and-dal.html
30
2706
by: Cramer | last post by:
I've finally gotton board with TDD (test driven development) and wow is it effective! I went from sceptic to True Believer with my first effort. My question: According to the various books and articles I have read about TDD, a good unit test does not rely on the database or other such external/environmental conditions. More generally, a good unit test is atomic and makes as few assumptions about its runtime environment as possible. But...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9037
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6779
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.