Join between in memory collection and EntityFramework

前端 未结 4 1315
闹比i
闹比i 2020-12-30 04:11

Is there any mechanism for doing a JOIN between an in-memory collection and entity framework while preserving the order.

What I am trying is

var ite         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 04:31

    What about loading the whole efRepo? I mean something like this (ToArray()):

    var itemsToAdd = myInMemoryList.Join(
        efRepo.ToArray(),
        listitem => listitem.RECORD_NUMBER, efRepoItem => efRepoItem.RECORD_NUMBER, (left, right) => right);
    

提交回复
热议问题