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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4: <strong>FILESTREAM</strong> with Entity Framework and LINQ to <strong>SQL</strong>We will name the Entity Data Model NorthPoleModel.edmx. Click OK to proceed to theEntity Data Model Wizard (Figure 4-9).Figure 4-9:Generating the model.Select Generate from database, because we have already created the database neededfor this lab. <strong>The</strong> wizard will generate EF wrapper classes for the selected database objectswhen completed. Next, we choose the data connection (Figure 4-10).In Lab 2a, it was noted that using <strong>SQL</strong> <strong>Server</strong> authentication to connect to the databasewas acceptable because we would only access the <strong>FILESTREAM</strong> data using T-<strong>SQL</strong>. Inthis lab, we must use Windows authentication because the application will access the<strong>FILESTREAM</strong> data using the Managed APIs.147

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

Saved successfully!

Ooh no, something went wrong!