Learn your way! Get started

Developing Apps Using C# 2008: What's New

with experts Ken Getz, Robert Green


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 2/19/2008
Level Intermediate
Runtime 11h 7m
Closed captioning N/A
Transcript N/A
eBooks / courseware Included
Hands-on labs Included
Sample code Included
Exams Included


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

Visual Studio 2008 adds a large set of new functionality for the Visual C# developer. From new language features, including LINQ (Language Integrated Query) to new client-side data support, Visual Studio 2008 and the .NET Framework 3.5 make it easier than ever to create robust, enterprise-level applications. This course, including full written courseware, demonstrations, and lab exercises, introduces the most important new features in Visual Studio 2008 for experienced Visual C# developers.

Prerequisites

Before taking this course, students should have a good working knowledge of Visual Studio 2005 and the .NET Framework 2.0, or should have completed AppDev's Developing Applications Using Visual C# 2005 and Developing Applications Using Visual C# 2005: Additional Topics.

Meet the experts

Ken Getz is a featured instructor for several of our Visual Studio courses. He is a Visual Basic and Visual C# expert and has been recognized multiple times as a Microsoft MVP. Ken is a seasoned instructor, successful consultant, and the author or co-author of several best-selling books. He is a frequent speaker at technical conferences like Tech-Ed, VSLive, and DevConnections and he has written for several of the industry's most-respected publications including Visual Studio Magazine, CoDe Magazine, and MSDN Magazine.

Robert Green is a Visual Studio expert and a featured instructor for several of our Visual Basic and Visual C# courses. He is currently a Technical Evangelist in the Developer Platform and Evangelism (DPE) group at Microsoft. He has also worked for Microsoft on the Developer Tools marketing team and as Community Lead on the Visual Basic team. Robert has several years of consulting experience focused on developer training and is a frequent speaker at technology conferences including TechEd, VSLive, VSConnections, and Advisor Live.

Course outline



Module 1

Introduction to LINQ (46:28)
  • Introduction (01:52)
  • Working with Data (05:13)
  • LINQ and VB/C# (00:48)
  • LINQ and Language Features (02:03)
  • LINQ Usages (01:09)
  • LINQ Overview (00:43)
  • LINQ Syntax (02:30)
  • Demo: Query Expressions (01:10)
  • Intellisense with LINQ (01:02)
  • Extension Methods (02:46)
  • Demo: Custom Extension (02:10)
  • More Complex Objects (00:32)
  • Object Initializers (02:34)
  • Demo: Object Initializers (03:43)
  • Query Extension Methods (01:53)
  • Lambda Expressions (02:15)
  • Demo: Lambda Expressions (02:18)
  • Anonymous Types (01:48)
  • Demo: Anonymous Types (01:47)
  • Interesting Examples (00:55)
  • Demo: List Processes (02:37)
  • Demo: Process a Text File (02:13)
  • LINQ and Delayed Execution (01:06)
  • Summary (01:11)
LINQ to SQL (18:38)
  • Introduction (00:43)
  • Overview: LINQ to SQL (01:22)
  • Create Data Model (00:25)
  • Demo: Add LINQ to SQL Class (02:23)
  • Demo: View Data Model (01:27)
  • Demo: Query SQL Database (01:50)
  • Demo: Call Stored Proc (01:34)
  • Anonymous Types w/SQL (00:52)
  • Demo: Anonymous Types (00:48)
  • Modify SQL Data (01:49)
  • Demo: Modify SQL Data (04:07)
  • Summary (01:12)
LINQ to DataSets / XML (25:25)
  • Introduction (01:09)
  • Overview: LINQ to DataSets (00:59)
  • LINQ to Typed DataSets (00:28)
  • Demo: Typed DataSets (02:55)
  • LINQ to Untyped DataSets (02:24)
  • Demo: Untyped DataSets (02:49)
  • LINQ to XML (01:58)
  • Demo: LINQ to XML (06:50)
  • Transform XML (00:49)
  • Demo: Transform XML (03:08)
  • For More Information (00:52)
  • Summary (00:59)

Module 2

Hierarchical Data / Caching (40:26)
  • Introduction (00:59)
  • Work with Related Data (02:38)
  • TableAdapterManager (01:01)
  • Demo: TableAdapterManager (00:30)
  • View DataSet (00:10)
  • View Relations (04:54)
  • AutoIncrement Properties (02:46)
  • Connected Scenarios (02:00)
  • Synch Local Data (01:15)
  • Synch Services for ADO.NET (01:14)
  • SQL Server Compact 3.5 (00:40)
  • Set Up Synchronization (00:54)
  • Demo: ADO.NET Synch (01:23)
  • Add Local Database Cache (01:24)
  • Configure Tables (03:41)
  • Explore Solution Files (00:51)
  • Rebind Data Controls (04:21)
  • Synchronize Database (04:59)
  • Test Synch/Remote Data (02:34)
  • SyncStatistics Class (00:41)
  • SyncDirection Property (01:03)
  • Summary (00:18)
N-Tier Data (33:10)
  • Introduction (00:42)
  • Overview: 2-Tier (01:10)
  • Overview: N-Tier (02:24)
  • Demo: Split DataSet Code (03:14)
  • Create N-Tier App (00:20)
  • Define 2-Tier DataSource (00:59)
  • DataSet Project Property (01:36)
  • Create Multi-Tier Form (00:29)
  • Define N-Tier DataSource (03:31)
  • Test N-Tier App (00:46)
  • LINQ to SQL (01:02)
  • LINQ to SQL Mappings (00:49)
  • DataContext Class (00:44)
  • Entity Classes (00:13)
  • Object Relational Designer (00:35)
  • Demo: LINQ to SQL (02:46)
  • View Designer Class (02:12)
  • Create Front End (04:49)
  • Configure Behavior (04:26)
  • Summary (00:14)

Module 3

Introduction to WPF (41:56)
  • Introduction (01:06)
  • Overview: WPF (01:01)
  • View Example WPF App (00:39)
  • Windows Forms (01:17)
  • What WPF Provides (01:56)
  • Graphics and Composition (00:44)
  • WPF Questions (03:22)
  • Family.Show App (05:24)
  • Inconvenient Truth (01:54)
  • WPF and XAML (01:38)
  • XAML /WPF Designer (01:11)
  • Demo: A Simple WPF App (00:21)
  • Explore WPF App Parts (02:12)
  • View XAML Markup (02:08)
  • Modify Properties (01:03)
  • Add Controls (03:41)
  • Handle Events (03:12)
  • Useful Project Tools (01:16)
  • Investigate Routed Events (01:15)
  • Properties of RoutedEventArgs (01:31)
  • Demo: Modify the App (04:04)
  • Summary (00:54)
Content / Grid Controls (35:00)
  • Introduction (00:50)
  • Overview: Content Controls (00:41)
  • Add Image to ListBox (03:53)
  • Content Property (00:52)
  • Work w/Layout Controls (01:33)
  • StackPanel Control (03:00)
  • Add TextBox to StackPanel (01:22)
  • List Box as Container (04:02)
  • Grid Control (00:06)
  • Create Row/Column Definitions (00:43)
  • Specifying Column/Row Sizes (02:57)
  • Add Controls to Grid (03:01)
  • Dependency Properties (01:08)
  • DependencyObject Class (00:49)
  • Investigate Dependency Props (01:17)
  • Declare the Property (00:42)
  • In Constructor (00:44)
  • Property Wrapper (00:58)
  • Use Attached Properties (02:01)
  • Programming the Grid (02:40)
  • Summary (01:30)

Module 4

WPF Layout (27:19)
  • Introduction (02:09)
  • Examine Solution App (02:16)
  • Controls in App (00:28)
  • Create the Layout (00:33)
  • Create New Project (01:21)
  • Add Second Grid (01:55)
  • Add Controls to Grid (04:11)
  • Save / Test Form (00:48)
  • MoviePlayer Control (00:31)
  • Demo: MoviePlayer Control (01:12)
  • Add Stack Panel (00:35)
  • Add Media Element Control (01:23)
  • Add a Slider (01:07)
  • Configure Row Definitions (00:44)
  • Configure Buttons (03:25)
  • Configure Stack Panel (01:54)
  • Configure Slider (00:59)
  • Configure Column Sizes (01:07)
  • Summary (00:32)
WPF Code (53:55)
  • Introduction (01:30)
  • Add Timer to User Control (01:42)
  • Add Constructor (00:24)
  • Event Handler Code (02:10)
  • Add Button Code (02:52)
  • Hook Up Event Handlers (02:10)
  • Add the User Control (02:59)
  • Test the Application (04:29)
  • Create / Bind Data Source (00:23)
  • Create ThumbnailList Class (01:30)
  • Set FolderName Property (01:36)
  • Demo: ThumbnailList Class (02:37)
  • Prepare Window1 Class (01:01)
  • Demo: Window1 Class (02:36)
  • Hook up Data Binding (00:26)
  • Demo: Data Binding (02:30)
  • Data Binding Syntax (02:24)
  • Display the Video (03:10)
  • Add Data Converter/Template (00:29)
  • Create a Type Converter (00:47)
  • IValueConverter Interface (01:36)
  • Demo: Type Converter (02:14)
  • Add Converter Resource (00:38)
  • Add Resources (01:55)
  • Create Data Template (07:07)
  • Save / Test Application (01:03)
  • Summary (01:24)

Module 5

Create a WCF Service (39:16)
  • Introduction (00:56)
  • Windows Comm. Foundation (02:13)
  • WCF / Web Services (00:46)
  • WCF / .NET Remoting (00:49)
  • Demo: Simple WCF Service (04:44)
  • WCF Building Blocks (00:53)
  • Services (00:29)
  • Service Contracts (00:53)
  • Data Contracts (00:51)
  • Endpoints (01:46)
  • Bindings (01:15)
  • WCF Provided Bindings (02:01)
  • Demo: Create WCF Service (02:52)
  • Create Connection String (01:00)
  • Examine Data Code (01:05)
  • View app.config (01:21)
  • Test Service (00:32)
  • Create a Host for Service (02:26)
  • Modify Web.config (01:05)
  • View Service in Browser (00:30)
  • Call Service w/Windows App (00:45)
  • Examine Windows Client (00:22)
  • Add Service Reference (01:41)
  • Bind the Data (06:27)
  • Test Client App (01:04)
  • Summary (00:18)
Host a WCF Service (27:24)
  • Introduction (00:30)
  • Overview (00:38)
  • Hosting Options (00:54)
  • Host in IIS (00:48)
  • Host in Client App (01:00)
  • Channels (00:58)
  • Demo: Host a WCF Service (00:13)
  • Create Console App (00:15)
  • Add Reference (01:03)
  • Add ServiceHost Code (02:26)
  • Run the Service Host (00:24)
  • Create Client App (01:10)
  • Set Up Data Binding (00:22)
  • Add New DataSource (03:35)
  • Create an Endpoint (00:37)
  • ChannelFactory (04:44)
  • Set Start Up Projects (00:15)
  • Test the App (00:24)
  • Use NetTCPBinding (00:29)
  • Define Multiple Endpoints (01:53)
  • Multiple Listening Protocols (04:19)
  • Summary (00:19)
Configuration (22:46)
  • Introduction (00:56)
  • ServiceModel Configuration (01:16)
  • <services> Element (00:38)
  • Configuration Example (00:37)
  • Multiple Endpoints (01:09)
  • Demo: Config WCF Services (01:56)
  • Service Config Editor (00:25)
  • Create New Service (02:15)
  • Create/Edit Endpoints (02:25)
  • Save config File (00:20)
  • Include in Project (01:13)
  • Test Service (00:49)
  • Create Client End Points (02:20)
  • View Client app.config (00:40)
  • Implement End Points (03:20)
  • Test App (00:32)
  • Edit Config File (01:15)
  • Summary (00:31)

Module 6

Introduction to Workflow (33:39)
  • Introduction (00:48)
  • Overview: WWF (02:50)
  • Demo: Simple Workflow (00:50)
  • Create Sequential Workflow (00:09)
  • Add Activities (01:43)
  • Test Workflow (00:17)
  • Debug Workflow (01:02)
  • Examine Startup Code (02:20)
  • Overview: Activities (01:14)
  • Conditional Activites (01:06)
  • IfElse Activity (01:06)
  • While Activity (00:47)
  • Demo: IfElse Activity (02:39)
  • Set Conditions (00:48)
  • Declarative Rule Condition (00:25)
  • Rule Expression Editor (01:15)
  • Add/Remove IfElse Branch (01:02)
  • Code Condition (02:32)
  • Test IfElse Workflow (01:18)
  • Demo: While Activity (00:28)
  • Add While Activity (00:18)
  • Add Sequence Activity (03:56)
  • Bind to a Property (03:13)
  • Test While Workflow (00:51)
  • Summary (00:31)
WWF Decisions / Hosting (30:04)
  • Introduction (00:45)
  • Rules in Workflows (00:51)
  • Overview: RuleSet (01:11)
  • Overview: Policy Activity (01:00)
  • Demo: RuleSets/Policies (02:26)
  • Use a Policy Activity (00:29)
  • Create a RuleSet (00:38)
  • Add New Rules (02:43)
  • Call Methods in Rules (03:06)
  • Test Workflow (01:57)
  • Workflow Architecture (01:26)
  • Host Workflow in Windows App (00:43)
  • Pass Parameters (00:59)
  • Demo: Host Workflow in Form (03:22)
  • Set Workflow References (02:57)
  • Demo: Pass Parameters (03:07)
  • Test Host Workflow (01:37)
  • Summary (00:39)

Module 7

Comm. / State Machines (38:21)
  • Introduction (00:37)
  • Overview (02:07)
  • Demo: Call Methods in Host (02:36)
  • Create the Interface (02:20)
  • Call Methods (02:26)
  • Implement Interface (03:49)
  • Hook up Data Exchange (00:51)
  • Save/Build/Test Solution (01:22)
  • Handle Host Events (00:44)
  • Event Arguments (00:35)
  • State Machine Workflows (02:42)
  • State / SetState Activites (00:37)
  • Demo: State Machine WF (00:21)
  • Examine EventArgs Class (00:49)
  • Examine the Interface (00:31)
  • Examine Host Interface (02:13)
  • Create the Workflow States (00:01)
  • Modify State Activity (01:37)
  • Configure State Transitions (02:16)
  • Configure Workflow Events (07:23)
  • Test the Application (01:25)
  • Summary (00:49)
Client App Services (37:50)
  • Introduction (01:11)
  • Manage Members / Roles (01:41)
  • Configure Web Site Security (00:48)
  • Demo: Web Site Security (00:17)
  • Run aspnet_regsql (00:18)
  • ASP.NET SQL Server Wizard (00:38)
  • Create Web Site (01:19)
  • Set Web Site Properties (00:43)
  • Set up Security (00:08)
  • Web Site Administration Tool (01:15)
  • Create Roles (00:21)
  • Add Users/Access Rules (01:26)
  • Manage Roles (01:29)
  • Windows Application Features (00:47)
  • Role Based Security (00:58)
  • Project Settings (00:48)
  • Client Application Services (01:22)
  • Authentication (01:08)
  • Demo: Remote Authentication (00:28)
  • Enable Client App Services (02:09)
  • Configure Web Site to Listen (00:57)
  • Use Authentication Service (04:14)
  • Modify Login Form (01:27)
  • Use Credentials Provider (08:18)
  • Code to Logout (02:21)
  • Summary (01:07)
Roles/Settings/Cust. Providers (36:37)
  • Introduction (00:42)
  • Overview: Roles (01:05)
  • Overview: Settings (01:21)
  • Demo: Remote Roles/Profiles (02:26)
  • Use Roles Service (03:02)
  • Add/Define Settings (01:41)
  • Bind Settings (02:13)
  • Save Settings (01:06)
  • Run Application (01:40)
  • Use Profile Service (01:09)
  • Load Web Settings (01:42)
  • Test Web Settings (02:15)
  • Custom Membership Providers (01:33)
  • Custom Role Providers (00:55)
  • Demo: Membership/Role Prov. (02:02)
  • View User.xml/Roles.xml (01:12)
  • Create Membership Provider (04:44)
  • Create Role Provider (02:29)
  • Test the Providers (02:22)
  • Summary (00:49)

Module 8

VSTO Excel (39:12)
  • Introduction (01:31)
  • Office Projects VS 2008 (01:45)
  • What Can Office Do (00:44)
  • What Kind of Apps (01:08)
  • Document vs. Application (01:42)
  • Excel Add-In (01:09)
  • Ribbon Customizations (01:32)
  • Demo: Create Excel Add-In (00:43)
  • Demo: Ribbon Customization (00:37)
  • Office Ribbon IDs (02:26)
  • Lay out Custom Tab/Group (04:22)
  • Add Data Source (01:54)
  • Add Data / Hook Events (06:25)
  • Create Custom Task Pane (01:25)
  • Program Custom Task Pane (04:25)
  • Manage Task Pane Display (02:11)
  • Task Pane/ToggleButton (02:01)
  • Test Excel Add-In (00:52)
  • Summary (02:13)
VSTOWord (25:29)
  • Introduction (02:17)
  • Content Control Types (00:44)
  • Managed Wrappers (00:46)
  • Create Form (00:52)
  • Demo: Content Controls (00:52)
  • Create New Form (00:48)
  • Add New Data Source (02:02)
  • Add Content Controls (04:44)
  • Program Content Controls (04:22)
  • Enhance Data Binding (04:50)
  • Test Word Add-In (01:29)
  • Summary (01:39)
VSTO Outlook (14:27)
  • Introduction (01:28)
  • Form Regions (00:16)
  • Four Types of Regions (00:30)
  • Create Form Region (01:01)
  • Create Office Add-in (00:21)
  • Add New Form Region (01:02)
  • Add New Data Source (01:40)
  • Lay out Form Contents (03:14)
  • Test the Form (00:27)
  • Populate the Mail Message (02:46)
  • Test Add-in (00:49)
  • Summary (00:47)