You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using(vardb=newPRIMEEntities()){varresult=default
#error Cannot convert QueryExpressionSyntax - see comment for details
/* Cannot convert QueryExpressionSyntax, System.InvalidOperationException: Sequence contains more than one element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) at ICSharpCode.CodeConverter.CSharp.QueryConverter.<ConvertSubQueryAsync>d__15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at ICSharpCode.CodeConverter.CSharp.QueryConverter.<ConvertQueryWithContinuationAsync>d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at ICSharpCode.CodeConverter.CSharp.QueryConverter.<ConvertQuerySegmentsAsync>d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at ICSharpCode.CodeConverter.CSharp.QueryConverter.<ConvertClausesAsync>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at ICSharpCode.CodeConverter.CSharp.ExpressionNodeVisitor.<VisitQueryExpression>d__70.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at ICSharpCode.CodeConverter.CSharp.CommentConvertingVisitorWrapper.<ConvertHandledAsync>d__8`1.MoveNext() Input: From log In db.ImportARMTECHLogs Where log.Action = ImportActionType_ARMTECH.Apply_Temp_Tables_To_Production And log.Is_Success = True Group log By log.Reinsurance_Year, log.Export_Data_Type, WithShapes = log.Original_Filename.ToUpper.Contains("WITHSHAPES") Into g1 = Group Select g1.OrderByDescending(Function(x) x.Date_From_Filename).FirstOrDefault() */.ToDictionary<ImportARMTECHLog,Export_File_Key,DateTime>(x =>newExport_File_Key(){Reinsurance_Year=x.Reinsurance_Year,Export_Data_Type=x.Export_Data_Type,With_Shapes=x.Original_Filename.ToUpper().Contains("WITHSHAPES")}, y =>y.Date_From_Filename);returnresult;}
Details
Product in use: e.g. VS extension
Version in use: 9.0.3.0
The text was updated successfully, but these errors were encountered:
I'll consolidate this with #298 since I think it's the same issue.
Query syntax is definitely a weak area for the converter since it's essentially two whole extra languages and I keep thinking the whole area may need a fresh approach. Lots of examples are the key to improving so thanks!
VB.Net input code
Erroneous output
Details
The text was updated successfully, but these errors were encountered: