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 657067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:46:58+00:00 2026-05-13T22:46:58+00:00

I have an Object CaseNote which has numerous child object’s like CaseNoteContactType . For

  • 0

I have an Object CaseNote which has numerous child object’s like CaseNoteContactType. For 1 CaseNote there can be x CaseNoteContactType’s. In the UI ContactTypes are shown in a CheckListBox.

My question is how do I represent the ContactType child object? It is a simple int|string pair.

public Class CaseNote
{
  public Guid CaseNoteID { get; set; }
  ...
  public ??? ContactType { get; set; }
  etc...
// Down here would be Methods for saving, loading, validating, etc...
}

Would ContactType be a Dictionary? IEnumerable<ContactType>? An array, collection, or List<ContactType>??

What makes sense in these scenarios? A ContactType cannot exist with out a CaseNote but is it enough to make it an Object? I don’t understand the implications of each type. Also, does it matter that a CaseNote can have 0 to 30 ContactTypes?

Say I do go the route of creating a ContactType class does a child class need a property for storing it’s Parent’s ID?

Guidance greatly appreciated.

If I am way off here it is because I have never really properly set up a Business Object and am now struggling to fit my environment into what I have read.

  • 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-05-13T22:46:58+00:00Added an answer on May 13, 2026 at 10:46 pm

    The ContactType sounds like reference data. A CaseNote may have 0 or N ContactTypes, and a single ContactType may be assosciated with many CaseNotes. Is that correct?

    If so, I would suggest you make a new type called ContactType which contains two properties, Id and Name (assuming thats what the int and string are for):

    public class ContactType
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }
    

    And then in your CaseNote class, I would declare them as a List (or an IList interface):

    public IList<ContactType> ContactTypes { get; set; }
    

    To check if they have any ContactTypes you can do:

    if( myCase.ContactTypes.Count > 0 )
    {
        ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have object called Foo. Right now it implements IFoo which has a lot
I have object Country, which has Areas. Areas has Provinces. Provinces has Cities, and
suppose i have object has key 'dlist0' with attribute 'row_id' the i can access
i have object like this: some_object this object has like 1000 properties. i would
In java we have Object type which can be used to cast to specific
I have object A which in turn has a property of type Object B
Suppose I have a design like this: Object GUI has two objects: object aManager
I have object A which contains multiple instances of object B, which in turn
I have two tables: object that has object_id column and avalues that have object_id
I have an object, called Account, and there is a campaign source associated with

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.