I’m a new beginner to the entity framework .
and i can’t find the following method CreateQuery()

why i can’t find this method ?!!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since ESQL was considered an advanced use case, there is no straightforward API from
DbContext. You can access theObjectContextthat backs yourDbContextto do what you want:Related: http://thedatafarm.com/blog/data-access/accessing-objectcontext-features-from-ef-4-1-dbcontext/
As suggested there, you can also add a method ( or property)
ObjectContextto your context class: