1
Answer

Restriction to create object

Deepak Dwij

Deepak Dwij

13y
1.1k
1
Hi,
   I want to know that how can we restrict to create the limited number of objects of a class?

Thanks

Answers (1)
2
Kunal Naik

Kunal Naik

NA 425 0 13y
Hi,

Yes, you should build the classlibrary(businesslayer/dataaccesslayer) and then add the reference.

If you want to add class files at a later stage then you should rebuild your classlibrary and then get reference. This will not cause any problem.
Accepted
0
Nethra R S

Nethra R S

NA 310 266.8k 13y
Hi Kunal,

Should we build the classlibrary(businesslayer/dataaccesslayer) and then add the reference?

What if we want to add class files at a later stage? then what should be done? should we rebuild? will that not cause any problem?
0
Kunal Naik

Kunal Naik

NA 425 0 13y
Hi,

Build your BusinessLayer and then in your website you will access your 2 classes with the help of businesslayer object.
And if still that error comes then go to Add Refrence section under Reference section in side your web site root then under Browse tab select the dll from your projects bin folder then click ok. Now you access your these 2 classes in your website.

Hope this will helps you.
0
Nethra R S

Nethra R S

NA 310 266.8k 13y
What to check Miss Priya Linge???? You are not understanding my question itself
0
Priya Linge

Priya Linge

NA 5k 708.3k 13y
Hi,

Please check this,

  • App.Core - business layer logic services
  • App.Data - data access layer store classes and data access objects
  • App.Web - user interface layer
  • 0
    Nethra R S

    Nethra R S

    NA 310 266.8k 13y
    The BusinessLayer namespace itself and i have also mention using BusinessLayer; in the place where i wnat to use it..
    0
    Priya Linge

    Priya Linge

    NA 5k 708.3k 13y
    Hi Nethra,

    Can you please tell me which namespace you have added for accessing Businesslayer object.

    Thanks.