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-11:Choosing the database objects.Clicking Finish, saves the information and opens the Model Designer window.Configuring object relational mappingWe will now make some modifications to the default object relational mapping that wascreated. Most importantly, we will remove the mapping <strong>of</strong> the ItemImage field so that itwill not be included in the standard SELECT statements generated by Entity Framework.Right-click on the ItemImage scalar property in the Item entity on the entity diagramand click Delete. This effectively removes the ItemImage field from the mapping.149

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

Saved successfully!

Ooh no, something went wrong!