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>______ 131Lab 2: <strong>FILESTREAM</strong> and Entity Framework_______________________________ 132Rebuilding the sample database_______________________________________ 133Lab 2a: A simple EF application using T-<strong>SQL</strong> access_______________________ 134Lab 2b: Using SqlFileStream and Entity Framework together________________ 144Lab 3: <strong>FILESTREAM</strong> and LINQ to <strong>SQL</strong>___________________________________ 158Creating a new console application project______________________________ 158Adding a LINQ to <strong>SQL</strong> class__________________________________________ 158Defining object relational mappings____________________________________ 159Adding a new row__________________________________________________ 162Querying <strong>FILESTREAM</strong> data using LINQ to <strong>SQL</strong>_________________________ 162Summary____________________________________________________________ 163Chapter 5: <strong>FILESTREAM</strong> with ASP.NET and Silverlight________________165Lab 4: Uploading Files to a <strong>FILESTREAM</strong> Database froman ASP.NET Web Page___________________________________________167Creating a new ASP.NET web application_______________________________ 167Adding a database connection string___________________________________ 168Designing the data entry page________________________________________169Writing the "code-behind"____________________________________________ 171Running the application_____________________________________________ 175Lab 5: Deploying and Configuring a <strong>FILESTREAM</strong> Web Application on IIS_____176Running Visual Studio under an administrator account____________________ 177Publishing the web application into a new virtual directory_________________ 177Configuring IIS to use <strong>SQL</strong> <strong>Server</strong> Integrated Security_____________________ 181Running the application_____________________________________________ 188Lab 6: Creating a Web Handler to Serve Images froma <strong>FILESTREAM</strong> Database_________________________________________189Creating a stored procedure to retrieve <strong>FILESTREAM</strong> data_________________189Creating the web page to serve images__________________________________190Running and testing the application___________________________________ 193Lab 7: Displaying Thumbnail Images <strong>of</strong> Items froma <strong>FILESTREAM</strong> Database on an ASP.NET Web Page___________________194

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

Saved successfully!

Ooh no, something went wrong!