Should repositories implement IQueryable?

前端 未结 3 642
心在旅途
心在旅途 2020-12-08 07:41

I\'m considering one of two IRepository interfaces, one that is a descendant of IQueryable and one that contains IQueryable.

Like this:

public inter         


        
3条回答
  •  甜味超标
    2020-12-08 08:30

    You could always quick write stuff against List, it's not mocking using a mock framework, but it sure works great.

提交回复
热议问题