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. We will create another console application.Open Visual Studio, select File | New | Project, and then select Console Application. Youmight want to select your favorite .NET programming language (VB or C#) at this stage.<strong>The</strong> programming language will not make much difference because there is not muchcode in this lab. We present C# code in this chapter; the sample code for VB is suppliedseparately in the download.Provide a suitable name for your project and solution, such as <strong>FILESTREAM</strong> Chapter 4Lab 2b.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-8).Figure 4-8:<strong>The</strong> Add New Item dialog box.146

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

Saved successfully!

Ooh no, something went wrong!