What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 6531 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > C# - Loosely coupled architecuture ...
Nagasundar_Tn

C# - Loosely coupled architecuture

Replies: 0 | Posted by: Nagasundar_Tn on 6/19/2012 | Category: C# Forums | Views: 608 | Status: [Member] | Points: 10  


Can anyone please explain to me, with the aid of sample code, about implementing a loosely coupled architecture in C#?

For example I have a Employee class in UI layer. In my DTO (model) project I created Name and age properties. I am creating object of BAL and calling GetEmployeeDetails() method. In BL I am calling appropriate method in DAL to get the EmployeeDetails.

Now I want to implement loosely coupled implementation between UI and BAL and BAL to DAL. I came to know that putting interfaces and getting the references would solve the problem. But in which layer should I implement interfaces? (I mean should I create a separate project for interfaces). Kindly explain with sample code.

Regards,
T.N.Nagasundar


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

  No reply found.


Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/24/2013 2:16:48 AM