我正在尝试使用实体数据源来创建用户搜索然后编辑/删除数据的屏幕,但是我收到了查询语法错误。要做到这一点,我正在挂钩数据源的选择事件,但似乎做错了。
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.
新年快乐!
谢谢
更多推荐
实体数据源的可选搜索条件
发布评论