How to separate business logic ?

Posted by Akiii under ASP.NET on 6/20/2011 | Points: 10 | Views : 12367 | Status : [Member] | Replies : 16
Hi,
How do you separate business logic while creating an ASP.NET application ?

We can write our code in a class but what are the other methods that we can use to accomplish the above !

Any help is appreciated..
Thanks and Regards
Akiii




Responses

Posted by: Lakn2 on: 6/20/2011 [Member] Starter | Points: 25

Up
0
Down
why do n't you use MVC architecture ?

Thanks&Regards
LakshmiNarayana Nalluri.

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 6/20/2011 [Member] Bronze | Points: 25

Up
0
Down
hi Lakn2..

yes we can use MVC......
Any other?

Thanks
Akiii

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 6/23/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
i have written article related to that question years ago. look at this

http://www.codeproject.com/KB/cs/N-Tier22.aspx

http://www.codeproject.com/KB/cs/NTier.aspx
http://www.codeproject.com/KB/vb/N-Tier_Application_VB.aspx




Thank you for posting at Dotnetfunda
[Administrator]

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithadeepak on: 6/23/2011 [Member] Bronze | Points: 25

Up
0
Down
We can create a dll for business logic and add it as reference in the bin folder of your solution.

Nitha Deepak

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 6/23/2011 [Member] Bronze | Points: 25

Up
0
Down
@susan....

thanks for the MVC links.....
are there any other method so that we can separate business logic ?

@Vuyiswamb.....sir your articles are invaluable......
thanks for sharing......

@nitha........if we create a dll for every business logic class.....would it be a best practice ?
Whats your opinion on this ?

Regards
Akiii

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 6/24/2011 [Member] [MVP] Bronze | Points: 25
Posted by: Ndebata on: 6/24/2011 [Member] Starter | Points: 25

Up
0
Down
Hi
Akiii Just create a library (dll) which will hold all your business logic across the application.
Then use this one wherever you want.

Thanks,
Debata

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 6/24/2011 [Member] Bronze | Points: 25

Up
0
Down
hi narayan...
thanks for your reply...

the same questions i have asked to nitha....

if we create a dll for every business logic class.....would it be a best practice ?
Whats your opinion on this ?

Regards
Akiii

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 6/24/2011 [Member] Bronze | Points: 25

Up
0
Down
hi susan......

the first msdn link is very good.....
let me study that and if i find any problem i will surely discuss it with you....!
thanks for your help..

Regards
Akiii

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ndebata on: 6/24/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Akiii,

No , Only only ONE
dll can hold ALL
your business logic.

Thanks,
Debata

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 6/24/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi narayan...

any other way other than MVC and building dll...?

Akiii

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 6/24/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi Akiiii

thanks

Regards,
Susan

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithadeepak on: 6/24/2011 [Member] Bronze | Points: 25

Up
0
Down
In one dll, you can create different classes for different business logic.
After building the dll, you can use that dll in any of your application by referencing it.

Nitha Deepak

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 6/24/2011 [Member] Bronze | Points: 25

Up
0
Down
thanks nitha for the info.....

Presently i am working in a project in which there is a folder in which all the classes are written.....

Regards
Akiii

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gopesh9 on: 8/3/2012 [Member] Starter | Points: 25

Up
0
Down
You can create a class library named Blogic. Then build it, you will now get a Blogic.dll
Simply include that .dll file in your application. This way you can seperate business logic.

G. S.
.Net Developer

Akiii, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response