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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:06:30+00:00 2026-05-17T03:06:30+00:00

Using the Northwind schema as an example which collection interface would you use in

  • 0

Using the Northwind schema as an example which collection interface would you use in the following circumstances.

Northwind Schema
(source: techmatica.com)
.

Customer

Customer has a collection of Orders. For the purpose of this example the Orders collection is readonly.

Order

An Order has collection of OrderDetails. An OrderDetail can be added to the collection.

Employee

An Employee has collection of Territories. An Employee can belong to 0 or more Territories but TerritoryId must be unique.

  • 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-17T03:06:31+00:00Added an answer on May 17, 2026 at 3:06 am

    Use ICollection<T> in all three cases for Orders and OrderDetails. There is no specific interface for readonly collections, this is handled by the implementation (you could use a ReadOnlyCollection<T> as the concrete type in that case). You could also use IList<T>, but it only adds support for access by index, which usually doesn’t really make sense in a relational model.

    For Territories, you could use ISet<T> (assuming you’re using .NET 4.0). Classes that implement this interface don’t allow duplicate items.

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

Sidebar

Related Questions

Using the Northwind sample: I would like to create an insert trigger on the
I am using Wcf in Sharp Architecture. I have configured my project following northwind
hei, Using Linq to SQL (ala NorthWind database for example): How to select all
i'm using MS northwind database, and use Entity Framework. I want to create new
This is an example out of a book using northwind database. What is the
I'm messing around with a tutorial http://www.kendoui.com/blogs/teamblog/posts/12-01-18/get_rolling_with_kendo_ui_and_php_ndash_part_1.aspx and using the postgres northwind port from
Let's suppose I'm using the Northwind database and I would like to run a
I'm trying to create a ASP.NET MVC 2 webapp using the Northwind database following
Using a populated Table Type as the source for a TSQL-Merge. I want to
I have the following code to retrieve customer name, total (orders ), sum (order

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.