Save files in database with entity framework
问题 I have an ASP.NET MVC solution built on Entity Framework with Microsoft SQL Server 2008. I need to create a function that lets my users upload files. What I would like is: A solution that uses the Entity Framework to store files in the Database A solution that detects and prevents from uploading the same file twice via some kind of hash/checksum Tips on database/table design 回答1: The "right" way to store a file in a SQL Server 2008 database is to use the FILESTREAM data type. I'm not aware