'Window Forms PDF Upload to Database using LINQ

My team and I are working on an application using Window Form with LINQ. We need help to upload PDF and Word Document File to the Database using LINQ. Kindly assist with a code snippet on how to go about this using LINQ

Your assistance will be greatly appreciated

Thanks in advance



Solution 1:[1]

Create an entity with a property of type byte[]. Copy the file bytes to that property and save it in the database.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 David Browne - Microsoft