0

I didn't find Context.Database.ExecuteSqlCommandAsync in .net core Microsoft.EntityFrameworkCore.Relational namespace. I added the reference as below.

enter image description here

Please help for this reference issue.

2
  • 1
    From this Docs, It seems that EF core does not support this , You can refer to this link to learn how to execute sql in ef core 5 Commented Jan 18, 2023 at 2:00
  • 1
    I found that in .net core 5 available functions are ExecuteSqlInterpolatedAsync and ExecuteSqlRawAsync for running sql commands Commented Jan 24, 2023 at 5:14

0

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.