1

Entity Framework:

readonly learning_dbEntities learning_db = new learning_dbEntities();

var userRemindersCheck1 = learning_db.Database.SqlQuery<string>("Select * from UserRemainderEntities");

(or)

var userRemindersCheck1 = learning_db.Database.SqlQuery<string>("Select * from UserRemainderEntities").ToList();

Both are not working!

It showing no error but data is not displaying. Please provide if you find any solution.

6
  • 1
    You shouldn't be using string here, it should be a class. Commented Jan 5, 2021 at 10:15
  • If possible, provide some syntax or reference links, i will understand better. Thank you responding! Commented Jan 5, 2021 at 10:18
  • I used this stackoverflow.com/a/35184536/6499680, please check once! Commented Jan 5, 2021 at 10:23
  • 1
    Well you can't just apply random Stack Overflow answers to your code without understanding them. Commented Jan 5, 2021 at 10:24
  • If Possible, Please provide some tutorial links so that i will refer and learn Raw Sql syntax better. Commented Jan 5, 2021 at 10:28

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.