摘要:
IQueryable<T> presult=…… 方式1: string traceString = (presult as System.Data.Objects.ObjectQuery).ToTraceString().ToString();方式2:string traceString = presult.GetType().GetMethod("ToTraceStrin... 阅读全文
随笔分类 - WCF RIA Service
wcf ria services 异步请求提示错误“超出了2083的最大uri长度”
2012-04-09 18:40 by starlet, 559 阅读, 收藏, 编辑
摘要:
DomainServices定义方法:[Query] public IQueryable<EdsContractParaBOMLink> getEdsContractParaBOMLinkCollectionByGuid(List<Guid> contractGuid) { List<EdsContractParaBOMLink> list = new List<EdsContractParaBOMLink>(); return list.AsQueryable(); }Silverlight客户端调用DomainServices里面提供的Que 阅读全文
当机器蓝屏后,vs编译提示“CreateRiaClientFilesTask”任务意外失败的解决办法!silverlight4.0
2011-11-17 19:09 by starlet, 872 阅读, 收藏, 编辑
摘要:
解决方法:Close VS, delete files in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files. Restart VS, Build solution. By the way; I got the problem after a bluescreen.http://stackoverflow.com/questions/2897477/the-createriaclientfilestask-task-failed-unexpectedly错误4“CreateRiaClientFilesT 阅读全文
解决方法:Submit 操作失败。为类型“BomExtend”上的集合属性“BomChildrenList”传递了一个或多个关联对象,但目标集合为 null。
2011-10-13 15:45 by starlet, 444 阅读, 收藏, 编辑
摘要:
实体:BomExtend为自定义实体属性:BomChildrenList为自定义实体BomExtend的一个属性 [DataContract]publicclassBomExtend{[Key,DataMember]publicGuidNumber{get;set;}[DataMember]publicGuidParentNumber{get;set;}[DataMember][Association("Bomchildren","Number","ParentNumber")][Include]publicList<BomEx 阅读全文