社区
C#
帖子详情
ABP 框架查询实体后面自动添加GUID字符串怎么取消
德蕴
2017-06-28 08:17:53
怎么取消后面的GUID
...全文
284
1
打赏
收藏
ABP 框架查询实体后面自动添加GUID字符串怎么取消
怎么取消后面的GUID
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
德蕴
2017-06-28
打赏
举报
回复
{ "message": "An error has occurred.", "exceptionMessage": "The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8'.", "exceptionType": "System.InvalidOperationException", "stackTrace": null, "innerException": { "message": "An error has occurred.", "exceptionMessage": "Error getting value from 'Role' on 'System.Data.Entity.DynamicProxies.User_CB799510C833BBE60C4C384684358A593817265B043EDBBB01BDAB9A4DE0974C'.", "exceptionType": "Newtonsoft.Json.JsonSerializationException", "stackTrace": " 在 Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)\r\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)\r\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)\r\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)\r\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)\r\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)\r\n 在 Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)\r\n 在 Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)\r\n 在 System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, Encoding effectiveEncoding)\r\n 在 System.Net.Http.Formatting.JsonMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, Encoding effectiveEncoding)\r\n 在 System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, HttpContent content)\r\n 在 System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext, CancellationToken cancellationToken)\r\n--- 引发异常的上一位置中堆栈跟踪的末尾 ---\r\n 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n 在 System.Web.Http.WebHost.HttpControllerHandler.<WriteBufferedResponseContentAsync>d__1b.MoveNext()", "innerException": { "message": "An error has occurred.", "exceptionMessage": "The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.", "exceptionType": "System.ObjectDisposedException", "stackTrace": " 在 System.Data.Entity.Core.Objects.ObjectContext.get_Connection()\r\n 在 System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)\r\n 在 System.Data.Entity.Core.Objects.ObjectQuery`1.Execute(MergeOption mergeOption)\r\n 在 System.Data.Entity.Core.Objects.DataClasses.EntityReference`1.Load(MergeOption mergeOption)\r\n 在 System.Data.Entity.Core.Objects.DataClasses.RelatedEnd.DeferredLoad()\r\n 在 System.Data.Entity.Core.Objects.Internal.LazyLoadBehavior.LoadProperty[TItem](TItem propertyValue, String relationshipName, String targetRoleName, Boolean mustBeNull, Object wrapperObject)\r\n 在 System.Data.Entity.Core.Objects.Internal.LazyLoadBehavior.<>c__DisplayClass7`2.<GetInterceptorDelegate>b__2(TProxy proxy, TItem item)\r\n 在 System.Data.Entity.DynamicProxies.User_CB799510C833BBE60C4C384684358A593817265B043EDBBB01BDAB9A4DE0974C.get_Role()\r\n 在 GetRole(Object )\r\n 在 Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)" } } } 现在报这个错误
C#
Abp
框架
入门系列文章(一)
随着技术的进步,各式各样的
框架
层出不穷,轮子越来越多,那么有没有哪些优秀的开发
框架
供我们使用呢?如果我们能够将各方面优秀的
框架
集合...本文作为
Abp
框架
的入门文章,仅供学习分享使用,如有不足之处,还请指正。
ABP
框架
学习
ABP
框架
学习 一、总体与公共结构 1,
ABP
配置 2,多租户 3,
ABP
Session 4,缓存 5,日志 6,设置管理 7,Timing 8,
ABP
Mapper 9,发送电子邮件 二、领域层 10,
实体
...
ABP
框架
官网学习资料
[新思想、新技术、新架构——更好更快的开发现代ASP.NET应用程序] ASP.NET Boilerplate是一个用最佳实践和流行技术开发现代WEB应用程序的新起点,它旨在成为一个通用的WEB应用程序
框架
和项目模板。
ABP
框架
概念
10,
实体
11,值对象 12,仓储 13,领域服务 14,规格模式 15,工作单元 16,事件总线 17,数据过滤器 三、应用层 18,应用服务 19,数据传输对象 20,验证数据传输对象 21,授权 22,功能管理 23,审计日志 四、...
NET使用
ABP
框架
搭建博客项目(二) 用户模块
如下图:我们在Core项目中增加一个文件夹Domain,在Domain增加Customers文件夹,
添加
一个枚举PasswordFormat并且继承Int。/// /// 密码加密的格式枚举 /// public enum PasswordFormat:int
C#
110,566
社区成员
642,567
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章