Menu
  • HOME
  • TAGS

Compile ERROR: The type is defined in an assembly that is not referenced

c#,linq,.net-assembly,3-tier

The most simple solution is add reference to dal from the UI project.

How to implement a 3-tier architecture in MVC5 WCF

wcf,asp.net-mvc-5,3-tier

I am posting this as an answer, only since there has been no more activity since I posed the initial question. Please use @Khurram Ali's links above if you are looking for an answer to this issue. I will sum it up quickly here by saying that the architecture can...

How Does the Silverlight Client Talk to the Server in a 3 Tier Lightswitch Application?

c#,silverlight,visual-studio-lightswitch,3-tier,lightswitch-2012

If the IIS Server is correctly set up, you should just be able to use a browser to download and install the current version of the desktop application (with correct configuration) from it. The url format for the request is: http[s]://{servername}[:port]/{applicationname}/ If you're not sure of the application name, use...

Removing database dependency from 3 tier architecture

architecture,3-tier,multi-tier

The Dependency Inversion Principle (DIP, one of the SOLID principles) exactly addresses the situation you describe: A. High-level modules should not depend on low-level modules. Both should depend on abstractions. B. Abstractions should not depend on details. Details should depend on abstractions. For your situation, in particular part A is...

How to return Linq query result from BLL layer to UI layer in C#

c#,asp.net,linq,data-access-layer,3-tier

You can return db.DBL_TBL which will return IQueriable. For example, public IQueriable<DB_TBL> GetTable() { dataContex db = new dataContex; return db.DB_TBL } You can also return IEnumerable or List as well. See example below which returns List. public List<DB_TBL> GetTable() { dataContex db = new dataContex; return db.DB_TBL.ToList(); } Then...

3-Tier Architecture MVC 4 Project

entity-framework,asp.net-mvc-4,3-tier

Can't be unambiguously correct answers on these issues, so any answer should be evaluated simply as an opinion. Here are my answers: Where should we place the CRUD functions? CRUD is a frequent pattern at different levels. Hi-level Repository provides similar methods, as a low-level Table Gateway. Where and why...