13.07.2015 Views

C# in Depth

C# in Depth

C# in Depth

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

282 CHAPTER 11 Query expressions and LINQ to Objects11.1.3 Def<strong>in</strong><strong>in</strong>g the sample data modelIn section 10.3.5 I gave a brief example of bug track<strong>in</strong>g as a real use for extensionmethods and lambda expressions. We’ll use the same idea for almost all of the samplecode <strong>in</strong> this chapter—it’s a fairly simple model, but one that can be manipulated <strong>in</strong>many different ways to give useful <strong>in</strong>formation. It’s also a doma<strong>in</strong> that most professionaldevelopers are familiar with, while not <strong>in</strong>volv<strong>in</strong>g frankly tedious relationshipsbetween customers and orders. You can f<strong>in</strong>d further examples us<strong>in</strong>g the same model<strong>in</strong> the downloadable source code, along with detailed comments. Some of these aremore complicated than the ones presented <strong>in</strong> this chapter and provide good exercisesfor understand<strong>in</strong>g larger query expressions.Our fictional sett<strong>in</strong>g is SkeetySoft, a small software company with big ambition. Thefounders have decided to attempt to create an office suite, a media player, and an <strong>in</strong>stantmessag<strong>in</strong>g application. After all, there are no big players <strong>in</strong> those markets, are there?The development department of SkeetySoft consists of five people: two developers(Deborah and Darren), two testers (Tara and Tim), and a manager (Mary). There’scurrently has a s<strong>in</strong>gle customer: Col<strong>in</strong>. The aforementioned products are SkeetyOffice,SkeetyMediaPlayer, and SkeetyTalk, respectively. We’re go<strong>in</strong>g to look at defectslogged dur<strong>in</strong>g August 2007, us<strong>in</strong>g the data model shown <strong>in</strong> figure 11.3.Figure 11.3Class diagram of the SkeetySoft defect data modelLicensed to Rhona Hadida

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!