命名空间问题(wcf服务中的程序集问题 [英] Namespace Issue (Assembly issue in wcf services

查看:73
本文介绍了命名空间问题(wcf服务中的程序集问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在WCF中查看以下URL expalin self hostin。



WCF自托管示例 [ ^ ]



在这个例子中,我在编写下面的代码时遇到错误



cutomerList.Where(p => p.CustomerID == obj.CustomerID).Update(p => p.CustomerName = obj.CustomerName);



错误是



'System.Collections.Generic.IEnumerable< saleclasslibrary.customer>'不包含'Update'并且没有扩展方法'Update'接受类型为'System.Collections.Generic.IEnumerable< saleclasslibrary.customer>'的第一个参数'(您是否缺少using指令或汇编引用?)D:\ DotNet\WCFProject\SaleClassLib rary \SaleService.cs 33 29 SaleClassLibrary



你能告诉我这个的实际解决方案或我想念的是什么?

Please check the below URL which expalin self hostin in WCF.

WCF Self Hosting with Example [^]

In this example I am getting error while writing the below code

cutomerList.Where(p => p.CustomerID == obj.CustomerID).Update(p => p.CustomerName = obj.CustomerName);

The error is

'System.Collections.Generic.IEnumerable<saleclasslibrary.customer>' does not contain a definition for 'Update' and no extension method 'Update' accepting a first argument of type 'System.Collections.Generic.IEnumerable<saleclasslibrary.customer>' could be found (are you missing a using directive or an assembly reference?) D:\DotNet\WCFProject\SaleClassLibrary\SaleService.cs 33 29 SaleClassLibrary

Can you tell me the actual solution for this or what refrence I am missng ?

推荐答案

你为什么在论坛上提出这个问题?问作者。加载您上面引用的页面,找到最后的评论和讨论部分,然后单击添加评论或问题,询问您的问题。作者将收到您的帖子通知并有机会回答您。



或者找一篇关于这个主题的更好的文章。 ;-)关于这个主题有很多出版物。



-SA
Why are you asking this question on the forum? Ask the author. Load the page you referenced above, locate the section "Comments and Discussions" at the end and click "Add a Comment or Question", ask your question. The author will get a notification on your post and a chance to answer you.

Or find a better article on the topic. ;-) There is a lot of publications on this topic around.

—SA


这篇关于命名空间问题(wcf服务中的程序集问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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