Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code first filetable in SQL Server

Trying to take advantage of the FileTables feature in SQL Server 2012 in my current MVC5 project. Does anyone have any examples of how to create the file table "table" using code first? All of my tables, indexes, etc. are done using code first and I'd like to continue that practice here.

like image 811
BTI-Doug Avatar asked Jun 24 '26 12:06

BTI-Doug


2 Answers

Unfortunately I cannot help you with FileTable, but this example of FileStream (similar thing in many ways) works quite well.

like image 89
Atchitutchuk Avatar answered Jun 26 '26 06:06

Atchitutchuk


The decision is available here: "WEB API FILE UPLOAD WITH MS SQL SERVER FILETABLE" https://damienbod.wordpress.com/2014/04/08/web-api-file-upload-with-ms-sql-server-filetable/

like image 33
Mentor Avatar answered Jun 26 '26 07:06

Mentor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!