17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

SHOW MORE
SHOW LESS

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

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

Chapter 4: <strong>FILESTREAM</strong> with Entity Framework and LINQ to <strong>SQL</strong>Creating a console application project<strong>The</strong> next step is to create a simple application. For simplicity, we will create a consoleapplication. Open Visual Studio, select File | New | Project, and then select ConsoleApplication. You might want to select your favorite .NET programming language (VBor C#) at this stage. <strong>The</strong> programming language will not make much difference becausethere is not much code in this lab. We present C# code in this chapter; the sample codefor VB is supplied separately in the download.Adding an Entity Data Model<strong>The</strong> next step is to add an ADO.NET Entity Data Model to the project. Right-click onyour project in Solution Explorer, and select Add | New Item. <strong>The</strong>n select ADO.NETEntity Data Model (Figure 4-1).Figure 4-1:Add New Item dialog box.136

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

Saved successfully!

Ooh no, something went wrong!