Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,
I creating 3 tier arch wpp in VS 2010. I added the BusinessAccessLayer refernce in Presentation Layer. and I created DataAccessLayer[DAL] and ORM [DBModel.DBML]. when i try to create the instance for the Table in presenation layer[default.aspx], The Table name is not shown.
After adding the DataAccessLayer refernce in the presentation layer, the table name[MM_User] instance are shown.
Is it the right method [Adding the DAL refernce in Presenation Layer]?
If not, whats the solution for for accessing the instance of the tables[MM_User].
Is it related to the Creating the DataContextWrapper class in DAL?
Posted

Looks like you are missing your Model-Class here.

Have:
1. Model class project - has all the object classes in it (your so called expected table structure)
2. Data Access Layer - Refer Model class DLL to use the object model
3. Business Logic Layer - Refer DAL dll & Model class DLL
4. Presentation Layer - Refer BLL & Model class DLL

This way, your architecure would be supporting the need and provide you layer system .
 
Share this answer
 
Hi,

Can you explain more about the Model Class project?

I added ORM [DBModel.DBML] in DAL, Is it right?
or
should I add ORM [DBModel.DBML] in Model Class project?

Can you help me in this regard?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900