获取友情链接-GetFriendLinkList发生异常。System.NotSupportedException: LINQ to Entities does not recognize the method 'System.DateTime AddYears(Int32)' method, and this method cannot be translated into a store expression. 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.DefaultTranslator.Translate(ExpressionConverter parent, MethodCallExpression call) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.TypedTranslate(ExpressionConverter parent, MethodCallExpression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator`1.Translate(ExpressionConverter parent, Expression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.BinaryTranslator.TypedTranslate(ExpressionConverter parent, BinaryExpression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator`1.Translate(ExpressionConverter parent, Expression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.BinaryTranslator.TypedTranslate(ExpressionConverter parent, BinaryExpression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator`1.Translate(ExpressionConverter parent, Expression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateLambda(LambdaExpression lambda, DbExpression input) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateLambda(LambdaExpression lambda, DbExpression input, DbExpressionBinding& binding) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.OneLambdaTranslator.Translate(ExpressionConverter parent, MethodCallExpression call, DbExpression& source, DbExpressionBinding& sourceBinding, DbExpression& lambda) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.OneLambdaTranslator.Translate(ExpressionConverter parent, MethodCallExpression call) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.SequenceMethodTranslator.Translate(ExpressionConverter parent, MethodCallExpression call, SequenceMethod sequenceMethod) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.TypedTranslate(ExpressionConverter parent, MethodCallExpression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TypedTranslator`1.Translate(ExpressionConverter parent, Expression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq) 在 System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.Convert() 在 System.Data.Entity.Core.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable`1 forMergeOption) 在 System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.b__6() 在 System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) 在 System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.b__5() 在 System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation) 在 System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) 在 System.Data.Entity.Core.Objects.ObjectQuery`1..GetEnumerator>b__0() 在 System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() 在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) 在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) 在 Lottomat.Data.EF.Database.FindList[T](Expression`1 condition) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Data\Lottomat.Data.EF\Database.cs:行号 379 在 Lottomat.Data.Repository.Repository`1.FindList(Expression`1 condition) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Data\Lottomat.Data.Repository\Repository\Repository.T.cs:行号 275 在 Lottomat.Application.Service.SystemManage.BaseFriendLinksService.GetList(Expression`1 condition) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Application\Lottomat.Application.Service\SystemManage\BaseFriendLinksService.cs:行号 63 在 Lottomat.Application.Busines.SystemManage.BaseFriendLinksBLL.GetList(Expression`1 condition) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Application\Lottomat.Application.Busines\SystemManage\BaseFriendLinksBLL.cs:行号 49 在 Lottomat.SOA.API.Controllers.V1.CommonController.<>c__DisplayClass2_0.b__0() 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.SOA.API\Controllers\V1\CommonController.cs:行号 104 在 Lottomat.Util.Log.LogHelper.Logger(Type type, String argJsonString, String function, ErrorHandel errorHandel, Action tryHandel, Action`1 catchHandel, Action finallHandel) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Util\Lottomat.Util.Log\LogHelper.cs:行号 71 获取首页展示详细开奖信息的彩种-GetHomeLotteryList发生异常。System.InvalidOperationException: 阅读器关闭时尝试调用 Read 无效。 在 System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) 在 System.Data.SqlClient.SqlDataReader.Read() 在 Lottomat.SOA.API.Controllers.V1.LotteryNumberController.<>c__DisplayClass6_0.b__0() 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.SOA.API\Controllers\V1\LotteryNumberController.cs:行号 285 在 Lottomat.Util.Log.LogHelper.Logger(Type type, String argJsonString, String function, ErrorHandel errorHandel, Action tryHandel, Action`1 catchHandel, Action finallHandel) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Util\Lottomat.Util.Log\LogHelper.cs:行号 71 获取首页展示详细开奖信息的彩种-GetHomeLotteryList发生异常。System.InvalidOperationException: 阅读器关闭时尝试调用 Read 无效。 在 System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) 在 System.Data.SqlClient.SqlDataReader.Read() 在 Lottomat.SOA.API.Controllers.V1.LotteryNumberController.<>c__DisplayClass6_0.b__0() 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.SOA.API\Controllers\V1\LotteryNumberController.cs:行号 285 在 Lottomat.Util.Log.LogHelper.Logger(Type type, String argJsonString, String function, ErrorHandel errorHandel, Action tryHandel, Action`1 catchHandel, Action finallHandel) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Util\Lottomat.Util.Log\LogHelper.cs:行号 71 获取首页展示详细开奖信息的彩种-GetHomeLotteryList发生异常。System.InvalidOperationException: 阅读器关闭时尝试调用 NextResult 无效。 在 System.Data.SqlClient.SqlDataReader.TryNextResult(Boolean& more) 在 System.Data.SqlClient.SqlDataReader.NextResult() 在 Lottomat.SOA.API.Controllers.V1.LotteryNumberController.<>c__DisplayClass6_0.b__0() 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.SOA.API\Controllers\V1\LotteryNumberController.cs:行号 285 在 Lottomat.Util.Log.LogHelper.Logger(Type type, String argJsonString, String function, ErrorHandel errorHandel, Action tryHandel, Action`1 catchHandel, Action finallHandel) 位置 F:\VS2017Workspace\SVNWorkspace\Lottomat\Lottomat.Util\Lottomat.Util.Log\LogHelper.cs:行号 71