TwitterUser class contains various properties, such as the screen name of the Twitter user. It also includes a collection of
TimelineItem objects that are maintained using an
EntitySet provides for deferred loading and manages the relationship of the collection side of one-to-many relationships between entities.
TwitterUser constructor initializes the
EntitySet, specifying two handlers: one that is called when a
TimelineItem is added to its collection; the other when a
TimelineItem is removed (see Listing 29.2).
TwitterUser class also uses the
Index attribute, which tells the
DataContext to create a database index for the secondary column ScreenName.
Indexes improve the speed of data retrieval operations ...