title: Save files in database with entity framework
body: <p>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. </p>
  
  <p>What I would like is:</p>
  
  <ul>
  <li>A solution that uses the Entity Framework to store files in the Database</li>
  <li>A solution that detects and prevents from uploading the same file twice via some kind of hash/checksum</li>
  <li>Tips on database/table design</li>
  </ul>