ria服务中的过滤器 [英] filter in ria service

查看:53
本文介绍了ria服务中的过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
在域数据源类中过滤数据时
例如

hi everyone
when filter data in domain data source class
as example

public IQueryable<product> GetProduct2(int empno)
      {
          return this.ObjectContext.Product.Where(sa => sa.prono == empno);

      }


因此,此过滤器在从数据库中获取数据之前
或将数据填充到内存中并从内存中过滤后
(此过滤器位于数据库或内存中)

感谢您的帮助


so this filter before fetch data from database
or after fill data in memory and filter from memory
(this filter in database or memory )

thanks for anyhelp

推荐答案

您的代码适用于不在数据库中的实体模型.

因此,模型将查询传递给数据库,然后数据库处理查询.

问候.
Your code applies over the Entity Model not in database.

So the model pass the query to the database and the database process the query.

Regards.


这篇关于ria服务中的过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆