LINQ to Entities does not recognize the method Int32 get_Item(Int32)

后端 未结 3 1266
广开言路
广开言路 2020-11-27 19:10

I am a newbie about entity framework and linq. My query is like that

var query = (from d in db.MYTABLE
             where d.RELID.Equals(myInts[0])
                 


        
3条回答
  •  我在风中等你
    2020-11-27 20:07

    var firstInt = myInts[0];
    var query = (from d in db.MYTABLE
                 where d.RELID.Equals(firstInt)
                 select d.ID).Distinct();
    
    List urunidleri = query.ToList();
    

提交回复
热议问题