0

In web application, i am created one new project in that i added class library, like business layer, datalayer, but when i am accessing the business class in datalayer, class object is created but, when i am accessing the fileds of that class like example :

EmpBL objEmb= new EmpBL(); 

objEmb is not coming in intellesence, even i am not accessing the fileds of business class can you help me out please. enter image description here

2
  • Did you add reference to ComacCRM.Business in CosmacCRM.Web or which ever project you are trying to access EmpBL from? Commented Jan 13, 2012 at 16:45
  • 1
    Add a reference to the class library in your project. Commented Jan 13, 2012 at 16:47

1 Answer 1

1

right click on your data layer project, select Add Reference and select Project tab - then add reference to your .Business project.

However, you can now have circular references, i.e. you can't reference each other. And normally, Business Objects project references Data Access project, not the other way around. Although any architecture is possible, and sometimes BOL project is just storage classes, and they don't know anything about DAL - a third project brings them together. Not sure about your exact architecture.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.