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

  • Home
  • SEARCH
  • 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 8969795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:38:37+00:00 2026-06-15T17:38:37+00:00

I’ve built an open source application, and I’d be curious to know how others

  • 0

I’ve built an open source application, and I’d be curious to know how others are handling customer-specific requests. It’s important to me to keep the app simple; I’m not trying to make it all things for all people. Apps can get bloated, complex, and just about unusable that way. However, there are some customer-specific options that would be nice (it just wouldn’t apply to all customers). For example…

Say we have a domain entity called Server. In the UI, we let a customer pick from a list of servers. For one company, it’s helpful to filter the servers by location (US, Germany, France, etc…). It would be easy enough to add a server property like this:

public class Server
{
    public Location Location { get; set; }
    // other properties here
}

My concern is that Server could become bloated with properties over time. And even if I only add location, not all customers would care about that property.

One option is to allow for user-defined fields:

public class Server
{
    public string UserField1 { get; set; }
    public string UserField2 { get; set; }
    public string UserField3 { get; set; }
    // etc...
    // other properties here
}

Is that the best way to handle this? I don’t like the fact that type safety is gone by making everything a string. Are there other/better ways that people are handling issues like this? Is there even a design pattern for something like this?

  • 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-15T17:38:38+00:00Added an answer on June 15, 2026 at 5:38 pm

    In my opinion, a good design pattern for something like this is to use schemas at the database level and then basic inheritance at the class level.

    CREATE TABLE dbo.A (
        ColumnA INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
        ColumnB VARCHAR(50),
        ColumnC INT,
        etc.
    )
    

    And now we have a client who needs some specific functionality, so let’s create an extension to this table in a different schema:

    CREATE TABLE CustomerA.A (
        ColumnA INT NOT NULL PRIMARY KEY,
        Location VARCHAR(50)
    )
    

    But now we have another client who needs to extend it differently:

    CREATE TABLE CustomerB.B (
        ColumnA INT NOT NULL PRIMARY KEY,
        DataCenterID INT
    )
    

    Though the fields may not be relevant, you get the idea, and so now we need to build the customer specific domain models here:

    public abstract class A
    {
        public int ColumnA { get; set; }
        public string ColumnB { get; set; }
        public int ColumnC { get; set; }
    }
    
    public class CustomerA_A : A
    {
        public string Location { get; set; }
    }
    
    public class CustomerB_A : A
    {
        public int DataCenterID { get; set; }
    }
    

    And so now when we need to build something for Customer A, we’ll build their subclass, and for Customer B theirs, and so on.

    Now, FYI, this is the beginnings of a very dynamic system. I say that because the piece that’s missing, that’s not yet dynamic, is the user-interface. There is a significant number of ways that can be accomplished, but way outside the scope of this question. That is something you’ll have to consider. I say that because the way you manage the interface will determine how you even know to build which subclass.

    I hope this has helped.

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

Sidebar

Related Questions

I am writing an app with both english and french support. The app requests
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Does anyone know how can I replace this 2 symbol below from the string
I am using Paperclip to handle profile photo uploads in my app. They upload
Let's say I'm outputting a post title and in our database, it's Hello Y’all

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.