- 移除 Lazy 延时加载动态代码中的 Newtonsoft.Json 依赖;

This commit is contained in:
28810
2019-12-03 13:36:12 +08:00
parent ecfac8843e
commit e107b6bbd9
3 changed files with 249 additions and 220 deletions

View File

@ -366,10 +366,9 @@ namespace FreeSql.Internal
.AppendLine("using FreeSql.DataAnnotations;")
.AppendLine("using System.Collections.Generic;")
.AppendLine("using System.Linq;")
.AppendLine("using Newtonsoft.Json;")
.AppendLine()
.Append("public class ").Append(trytbTypeLazyName).Append(" : ").Append(trytbTypeName).AppendLine(" {")
.AppendLine(" [JsonIgnore] private IFreeSql __fsql_orm__ { get; set; }\r\n");
.AppendLine(" private IFreeSql __fsql_orm__ { get; set; }\r\n");
}
var cscodeLength = cscode?.Length ?? 0;