实体数据源的可选搜索条件

编程入门 行业动态 更新时间:2024-10-26 14:28:32
本文介绍了实体数据源的可选搜索条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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论坛队列中发布问题, forums.asp/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, forums.asp/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.

新年快乐!

谢谢

更多推荐

实体数据源的可选搜索条件

本文发布于:2023-11-04 17:34:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1558573.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据源   可选   实体   条件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!