473,769 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to pass objects between layers?

I have a Solution with 3 Projects, representing 3 layers:

App_BL
App_DA
App_UI

All in Namespace APP

UI is a Windows Forms app and BL and DA are class libraries.

If I enter "APP." in a class in the UI layer, Intellisense shows all public
classes in the BL and DA layers - but if I try that in the BL or DA layers,
I only see the pubic classes in that layer (so I can't get a reference to a
BL object in the DL layer).

Is this by design, or is perhaps something wrong with my Solution and/or
Project settings? If it is by design, how then does one pass objects
between layers?

Thanks in advance.

Mar 1 '06 #1
3 2040
Hello deko,

It seems that your have references to all App_* in your UI APP and no references
to App_UI in other projects
What kind of objects are u going to pass and in which environment? local
machine, intranet with physical tiers?

d> I have a Solution with 3 Projects, representing 3 layers:
d>
d> App_BL
d> App_DA
d> App_UI
d> All in Namespace APP
d>
d> UI is a Windows Forms app and BL and DA are class libraries.
d>
d> If I enter "APP." in a class in the UI layer, Intellisense shows all
d> public classes in the BL and DA layers - but if I try that in the BL
d> or DA layers, I only see the pubic classes in that layer (so I can't
d> get a reference to a BL object in the DL layer).
d>
d> Is this by design, or is perhaps something wrong with my Solution
d> and/or Project settings? If it is by design, how then does one pass
d> objects between layers?
d>
d> Thanks in advance.
d>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 1 '06 #2
> It seems that your have references to all App_* in your UI APP and no
references to App_UI in other projects
Okay, I got it - right click on the References folder under the Project's
icon in Solution Explorer and add a reference to the other Projects. But, I
can't add a reference to App_BL from App_DA - I get an error saying it would
create a circular reference...
What kind of objects are u going to pass and in which environment? local
machine, intranet with physical tiers?


just regular objects...

Mar 1 '06 #3
"deko" <de**@nospam.co m> a écrit dans le message de news:
LY************* *************** **@comcast.com...

| Okay, I got it - right click on the References folder under the Project's
| icon in Solution Explorer and add a reference to the other Projects. But,
I
| can't add a reference to App_BL from App_DA - I get an error saying it
would
| create a circular reference...

That's because yoou should not be letting the App_DA see the App_BL
assembly. Use reflection in the DA assembly, you don't need to see the BL
types.

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
Mar 1 '06 #4

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

Similar topics

1
2811
by: Lizzy | last post by:
I have an internet application which has a progress bar show whenever the customer is requesting data from the server. This progress bar is coded to work in both Netscape 4.75 and above and IE 5.0 and above. The progress bar code is written in javascript in an external js file (progressbar.js). The web screen is in a seperate jsp file (Registration.jsp). The problem I'm having is that the progress bar is not showing in Netscape 4.75 on a...
1
4186
by: Andrés Giraldo | last post by:
Hi! I'm trying to pass trough all the objects of a form but I have some text inputs in a DIV and I have many DIVs like this on my form. I'm doing something like: for (i = 0; i < document.forms(0).item.length; i++) { dosomethingwith(document.forms(0).item(i)); }
2
279
by: seash | last post by:
H My application consists of three layers, presentaion layer(PL), Business Logic layer(BLL) and Data Access layer(DAL) my application is a single windows form application now BLL consits of couple of classes, in one class of BLL, i need to access a function of PL the function declaration is as..... public void MyFunc().......which is not a static one and there r lot of functions which use the above function.. s in the middle of the...
1
1409
by: John | last post by:
Hello everyone! I've read many articles about asp.net, business and data layers, and none of them seem to discourage the use of HttpContext specific variables in non-HttpContext specific layers; relying on the presence of the HttpSession or HttpRequest variables in the business layer for example. From what I can gather, doing this prevents these layers from being reused by different clients (winforms for example) since this context...
3
2342
by: Smithers | last post by:
In Windows Forms MDI applications... I'm wondering if it is standard practice to create DAL and business objects as static classes. The only alternative (please enlighten me if I'm wrong about this) is to instantiate the DAL and business objects in a Form class - most likely the MDI parent - and then expose the business objects as public members. What is standard practice here? .
13
2161
by: andrea | last post by:
Sorry for the stupid question, I know, but sometimes is necessary starts from the basic. I don't know how to pass the result of a method generated from a DAL class to a BL class returning the results as it is. I mean, for instance, something like this. namespace DAL {
25
2780
by: Penelope Dramas | last post by:
Hello, I'm in a front of very serious .net redesign/rewrite of an old VB6 application. I had been asked to make it .NET 2.0 and would like to ask couple of questions regarding data access as this application is heavily data-centric around MSDE database. Would it be better to use custom business objects or extend
1
1414
by: JohnIdol | last post by:
Hi All, I am using this funcion to manipulate form elements; every thing works fine except the reference to the disabled property. Any help (the property works fine when used in classic manner)? Thanks! G
3
2401
by: swetha123 | last post by:
hello, I don't know how to use cookies please help me in this I am using the dream weaver cs4 I designed the navigation bar to my page using dream weaver cs4 navigation bar contains Home, Retail Contact Us
0
10032
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
9979
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
9849
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8861
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...
0
6661
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
5293
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
3948
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
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.