none
Error on ADO.NET Entity Freamework "'LImg' could not be resolved in the current scope or context. Make sure that all referenced variables are in scope, that required schemas are loaded, and that namespaces are referenced correctly., near simple identifie"

    Question

  • Hi Everyone,

    I would like to use dynamic filter and i use the following method:

    <br/>
    TestEntities dbo = new TestEntities();
    string queryString = "SELECT LImg,SImg,Name,Name2,ID FROM View_Test";
    ObjectQuery<View_Test> pq = new <br/>
          ObjectQuery<View_Test>(queryString, dbo, MergeOption.NoTracking);
    var pl = pq.Where("it.Name=\"Tets\"").ToList<View_Test>();<br/>
    <br/>
    
    

    but I am getting this error: "'LImg' could not be resolved in the current scope or context. Make sure that all referenced variables are in scope, that required schemas are loaded, and that namespaces are referenced correctly., near simple identifier, line 3, column 8. "

    Please help fix it.

     

     

    Monday, December 20, 2010 9:00 AM

Answers

All replies