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>Figure 4-3:Choosing the data connection.You may remember that, for accessing <strong>FILESTREAM</strong> through Win32 or Managed APIs,Windows authentication was necessary. However, as mentioned earlier, EF accesses<strong>FILESTREAM</strong> data through T-<strong>SQL</strong> only. <strong>The</strong>refore, when you enter your databasecredentials, you can use either Windows authentication or <strong>SQL</strong> <strong>Server</strong> authentication.<strong>The</strong> next step allows you to select the database objects you wish to include in your datamodel (Figure 4-4). We'll select the Items table and the stored procedure SaveItem, andname the data model NorthPoleModel.138

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

Saved successfully!

Ooh no, something went wrong!