我有一个返回所有订单的方法: GetOrders()。该方法只调用一个方法:存储库的GetOrders(),它是在实体框架中实现的。我已经用EnableQuery属性修饰了get方法,但是如何将这些可查询的参数“传递”到存储库层的GetOrders()呢?下面是一些代码:[EnableQuery]{}public s
super(props); orderData:[], }
this.getOrders(); // some code here
} 正如您在上面的代码中所看到的,当推动器被触发时,我会向alert('New但是,我希望调用函数getOrders()而不是alert,但不确定如何调用,因为不能仅通过指定<em
类似于以下情况: public IQueryable<Order> GetOrders() return from sqlOrder in DB.Orders() return Repo.GetOrders().ToList();Controller/Action: {
return await Repo.GetOrders(