Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hai ,


Is that neccesary to write properties in a bussiness layer..
or else we can we write with out using properties using get{}, set{};i.e directly calling the dbml class using methods in bl layer.

thanks in advance...
Posted
Updated 5-May-10 23:10pm
v2

1 solution

Whatever you want...

But if you can write properties, it would be easier when any modifications is to be made with data.

You never know, that some days later your business logic changes and you need to modify the value of X coming from Data Layer.

In such a situation, you have to write a new property.. which means you need to change the Presentation layer again.

If you have bound using properties, it would be easier to handle this kind of situation by just changing the logic of the property, and keeping the Presentation layer intact.

:)
 
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