文章分类 -  Silverlight+WCF

摘要:当在DomainService中定义自定的方法时,如果该方法的参数为空或者参数为多个的话,在编译的时候SL工程会报Domain operation entry 'DeleteExecuteReservation' must take exactly one parameter.这个异常,问题的原因在于DomainService中定义的方法例如Insert、Update、Delete方法都有自己定义的一套规则,参数有时候是必须传递的,所以就导致了这个异常,解决方法是在该方法上应用Invoke特性即可,具体参看http://msdn.microsoft.com/en-us/libr 阅读全文
posted @ 2012-01-16 10:28 李董 阅读(251) 评论(0) 推荐(0)
摘要:环境Silverlight+DomainService+EFUnable to update the EntitySet ‘Reservation’ because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.虽然在DomainService中设置了表可以编辑,但是在添加记录的时候出现了以上异常,经过问题的排查,发现是由于表没设置主键导致 阅读全文
posted @ 2011-12-29 18:29 李董 阅读(359) 评论(0) 推荐(0)