0

Does this insert sql statement have a equivalent using linq to sql or how to write the insert in linq to sql?

INSERT INTO Table(FileId,  FileTitle, Action, FileAsBinary, UploadDate)

Values(NEWID(), 'Hello World Title', 'Upload',(  
SELECT * FROM OPENROWSET(
   BULK 'C:\Files\Docs\TestDoc.docx',
   SINGLE_BLOB) AS x), GetDate())

1 Answer 1

1

No you have to write a few lines of code to achive this. The Linq to Sql is just a light ORM for MSSQL.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.