1) Create a Database called RIATasks

2) Run this script:

USE [RIATasks]
GO
CREATE TABLE [dbo].[RIAComments](
	[CommentID] [int] IDENTITY(1,1) NOT NULL,
	[Comment] [nvarchar](max) NOT NULL,
	[CommentUpdateDate] [datetime] NOT NULL,
 CONSTRAINT [PK_RIAComments] PRIMARY KEY CLUSTERED 
(
	[CommentID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET IDENTITY_INSERT [dbo].[RIAComments] ON
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (2, N'Now is the time for all good men to come to the aid of their country', CAST(0x00009D07006B3BC1 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (3, N'The biggest benefit is that it allows a developer to create an application with no User Interface (UI). A Designer is then able to create the entire UI using Microsoft Expression Blend 4+, without writing a single line of code.', CAST(0x00009D60013F5EDD AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (4, N'The benefits of this include: The UI is easier to create when you can do it visually, in a tool, without having to write code. You may have a better UI when it is designed and implemented by people who may not be programmers. The UI can be created first, or at the same time, as the rest of the code, if needed The UI can be completely changed without the need to change any code ', CAST(0x00009DBC006B0205 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (5, N'The reason for this tutorial, is that I have noticed my friends are getting stuck when trying to learn Silverlight. They spend a lot of time "learning about Silverlight" but have a hard time actually getting started. I also wanted to show them how to use View Model Style programming because I believe that using View Model, you will write LESS CODE (you probably didn''t expect that one!). Don''t believe me? Let me show you...', CAST(0x00009DAA013F7F35 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (6, N'View Model Style allows a programmer to create an application that has absolutely no UI (user interface). The programmer only creates a View Model and a Model. A designer with no programming ability at all, is then able to start with a blank page and completely create the View (UI) in Microsoft Expression Blend 4 (or higher). If you are new to View Model Style it is suggested that you read Silverlight View Model Style : An (Overly) Simplified Explanation for an introduction.', CAST(0x00009D25013ABBD5 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (7, N'When using "View Model Style" programming, you may find a need to dynamically create Views. The challenge is to create them dynamically, while also allowing a Designer to easily design the UI.', CAST(0x00009D420093E075 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (8, N'Hopefully you can see that View Model is not hard at all. It really is not complicated once you see how it is done. Expression Blend was designed to work in "View Model Style", so you should have an easier time using Expression Blend when you use this simple pattern. We also demonstrated View Model Communication that you will hopefully find easy to understand. In addition, we covered dynamically creating Views while allowing a Designer full easy access to completely change the look of the application.', CAST(0x00009DB00093E770 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (9, N'We care about View Model, because we want to allow the Designer the freedom to design the application without code changes, and this example achieves that. Ok perhaps a Value Converter may need to be added is some situations, but, even in this case, the View Model did not need to be changed. If the Developer is wearing both hats, and is also the Designer, it may be easier to just alter the View Model if a property type needs to be added or changed, however, you have options. A Value Converter allows you to bind UI elements to the View Model when the View Model is faced with an unexpected change.', CAST(0x00009D7E013AC1CC AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (10, N'So now the application looks better, but I would like to make a Design change this time rather than simply a Style change. This is where the power of MVVM really shines. With MVVM, you can change the Design of an application without changing any code. In the existing application, you search for a website, then select it from the dropdown. A hyperlink appears and you click on the Hyperlink to navigate to the website.', CAST(0x00009D4B00B5ECE9 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (11, N'This is part 2 to the article Silverlight 4 Video Player. That article focused on the View Model Style (Model-View-ViewModel) pattern, and how it supports Designer / Developer collaboration and workflow. However, when others tried to use that project for a real website, they found they needed the full set of controls that a video player normally provides. I decided to use this as an opportunity to dig deeper into View Model Style and demonstrate how easy it truly is, when using Microsoft Expression Blend 4 (or higher). This time we will cover the "hard stuff". However, implementing this will be surprisingly easy.', CAST(0x00009DBB0171D0C3 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (12, N'This project creates a fully "Designable" Silverlight Video Player. This is not to be confused with a "Skinable" Video Player. A Skinable Video Player allows you to change the look and feel of the existing controls of the Video Player. A Designable player, allows a Designer to use ANY set of controls to implement the Video Player. For example, a Designer could replace all the buttons with a single dial that a user rotated into different positions, or they could change the method a user uses to select from the list of available videos. This can be done in Expression Blend without writing any code.', CAST(0x00009CF500000000 AS DateTime))
INSERT [dbo].[RIAComments] ([CommentID], [Comment], [CommentUpdateDate]) VALUES (13, N'In this tutorial, Michael Washington and Alan Beasley team up to demonstrate the creation of a Windows Phone 7 video player that uses the View Model Style pattern.', CAST(0x00009D1700000000 AS DateTime))
SET IDENTITY_INSERT [dbo].[RIAComments] OFF


3) Update the connection String