实体数据源的可选搜索条件 [英] Optional search criteria for entity data source

查看:84
本文介绍了实体数据源的可选搜索条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用实体数据源来创建用户搜索然后编辑/删除数据的屏幕,但是我收到了查询语法错误。要做到这一点,我正在挂钩数据源的选择事件,但似乎做错了。 

I am trying to use an entity data source to create a screen for a user to search for and then edit/delete data, but am receiving a query syntax error. To do this I am hooking into the Selecting event of the data source but seem to be doing something wrong. 

为此,我创建了一个包含参数值和信息的自定义类命名动态数据过滤器定义如下。

To do this I created a custom class that contains the parameter values and information named Dynamic Data Filter defined as follows.

 


public class DynamicDataFilter
{
  public string PameterName { get; set;}
  public string FieldName { get; set;}
  public object Value { get; set;}
  public DbType ParameterType { get; set; }
  public string Comparer { get; set; }
}

推荐答案

比尔,

我注意到你正在使用EntityDataSource,对吧?  我建议你在这里的ASP.NET论坛队列中发布问题,

http://forums.asp.net/1227.aspx?ADO.NET%2c+Entity+Framework%2c+LINQ+to+SQL%2c+ 。NHibernate的
功能此队列特别适用于在网络应用中使用EF。  我相信你可以从网络专家那里得到更好的支持。 

I noticed that you are using EntityDataSource, right?   I would recommend you post the question at the ASP.NET forum queue here, http://forums.asp.net/1227.aspx?ADO.NET%2c+Entity+Framework%2c+LINQ+to+SQL%2c+NHibernate.  This queue is especially for using EF in web apps.   I believe you can get better support from the web experts there. 

新年快乐!

谢谢


这篇关于实体数据源的可选搜索条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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