字母数字过滤器数据源 [英] Alphanumeric filter datasource

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

问题描述

我在使用EF和dataservices以及silverlight客户端解决这个问题时遇到了问题...

我有一个映射到实体Person的Table Person,它包含一个键和一个FirstName以及一个Lastname。 ..

这个实体是通过Ado.net Dataservices发布到目前为止都很好!

现在我想要一个方法来传递来自姓氏的每个命令的第一个字母......这是是我的麻烦开始...
我有一个sproc但这不能通过EF映射或发布,因为它只支持Sprocs删除/插入/更新...

我试图从我的查询客户端模型但过滤为子字符串,在silverlight客户端库上不支持select和distinct =(...

我试图实现一个返回列表(或字符数组)的服务操作...这个在浏览器中工作...但是使用silverlight客户端我得到以下异常...
我的意思是在内部异常的一条消息中我可以读到这个:
异常在客户:
处理响应流时出错。 XML元素包含混合内容。


我甚至添加了一个未绑定到名为Letter的表作为返回类型的实体......但我不是要编译它.... br>
如何获取我的信件列表?


关于





















方案

这方面有什么进展吗?我遇到了同样的问题(尝试返回一组字符串)


I have problems solving this with EF and dataservices and the silverlight client...

I have a Table Person which is mapped to an entity Person which contains a key and a FirstName as well as a Lastname...

This Entity is published via Ado.net Dataservices so far so good!

Now I want to have a method which delivers every destinct first letter from the lastname... And this is were my trouble starts...
I have a sproc but this connot be mapped or published via EF since it supports only Sprocs for delete/insert/update...

I tryd to query it from my client model but filter as substring, select and distinct are not supported on the silverlight client library =(...

I tryd to implement a service operation which returns a list (or array of chars)... this works in the browser... but using the silverlight client I get following exception...
I mean in one of the messages of inner exceptions I can read this:
Exception at client:
Error processing response stream. The XML element contains mixed content.


I even added a entity which is not bound to a table called Letter as a return type... but I am not to compile this....

how can I get my list of letters?


Regards

F.


解决方案

Any progress on this? I'm getting the same issues (trying to return a set of strings)


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

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