473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 2022
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.com> 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
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...
1
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 <...
2
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...
1
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;...
3
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...
13
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...
25
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...
1
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...
3
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.