Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8019395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:22:42+00:00 2026-06-04T21:22:42+00:00

A few years ago, I was told to implement the business logic code in

  • 0

A few years ago, I was told to implement the business logic code in separated .cs files, although this files wrapped the same partial class. So one could call a method from business layer like this:

using(FooPartialDisposableClass partialClassInstance = new FooPartialDisposableClass ())
partialClassInstance.BusinessMethod();

Ok.
So now, I’m doing the same thing only this time I’m using the Facade pattern. This solution seems like a better approach, even though you got to write more code and it’s less maintainable.

Well, then my question is… could it be right to follow the partial classes approach?

PS: I also thought of interfaces and dependency injection to decouple this layer from the layers that are gonna use these business logic methods, but it’s a no-no considering how things work around here :S

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:22:43+00:00Added an answer on June 4, 2026 at 9:22 pm

    Partial classes are not an OOP design feature. They are just “code-layout”` stuff and can not be a substitute to any code design.

    It’s just code-layout/distribution, if you wish, feature.

    Facade design is different from DI, and if you think that the Facade pattern fits best your project needs, continue with that.

    Use partial classes in case when the file of the class becomes too big, or you have different team members that may want to make a changes on different parts of that Facade. In this case distribute a file between different files (based on responsibility destribution in your team), to make easier to manage a code and avoid conflicts as much as it possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was thinking about a code that I wrote a few years ago in
A few years ago I installed a CMS which was written in PHP. This
I have some code I wrote a few years ago. It has been working
This happened to me a few years ago before I knew about SO, but
So I have this application that someone coded a few years ago and it
A few years ago, when I was on my degree, my teacher told me
This question was asked a few years ago, so I'm going to ask it
I have found this command few years ago and used it since then to
A few years ago Dean Edwards brought us this workaround to the document.onload problem.
A few years ago I built a small OpenGL project where I simulated an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.