# ActionLogs

ID: F99F03C3-297E-454D-8502-199A0E4E886C
ModuleName: QueryableMethodTranslatingExpressionVisitor
ActionName: <VisitMethodCall>g__CheckTranslated|15_0
ITCode: admin
ActionUrl: /BasicData/DeviceVariable/Search
ActionTime: 2022-08-25 08:50:37.8432324
IP: ::1
Remark:
  System.InvalidOperationException: The LINQ expression 'DbSet<DeviceVariable>()
      .LeftJoin(
          inner: DbSet<Device>(), 
          outerKeySelector: d => EF.Property<Guid?>(d, "DeviceId"), 
          innerKeySelector: d0 => EF.Property<Guid?>(d0, "ID"), 
          resultSelector: (o, i) => new TransparentIdentifier<DeviceVariable, Device>(
              Outer = o, 
              Inner = i
          ))
      .OrderBy(d => d.Inner.DeviceName)
      .ThenBy(d => new DeviceVariable_View{ 
          ID = d.Outer.ID, 
          DeviceId = d.Outer.DeviceId, 
          Name = d.Outer.Name, 
          Description = d.Outer.Description, 
          Method = d.Outer.Method, 
          DeviceAddress = d.Outer.DeviceAddress, 
          DataType = d.Outer.DataType, 
          Expressions = d.Outer.Expressions, 
          ProtectType = d.Outer.ProtectType, 
          DeviceName_view = d.Inner.DeviceName, 
          Device = d.Inner 
      }
      .Index)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.
     at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.<VisitMethodCall>g__CheckTranslated|15_0(ShapedQueryExpression translated, <>c__DisplayClass15_0& )
     at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression)
     at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor visitor)
     at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
     at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression)
     at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor visitor)
     at System.Linq.Expressions.ExpressionVisitor


ID: D97A2735-265E-4AF3-B47A-7CB6DB16DEA3
ModuleName: QueryableMethodTranslatingExpressionVisitor
ActionName: <VisitMethodCall>g__CheckTranslated|15_0
ITCode: admin
ActionUrl: /BasicData/DeviceVariable/Search
ActionTime: 2022-08-25 08:50:40.2577842
IP: ::1
Remark:
  System.InvalidOperationException: The LINQ expression 'DbSet<DeviceVariable>()
      .Where(d => d.DeviceId.Value == c22b5f8d-8707-4104-be32-7b179c4101b5)
      .LeftJoin(
          inner: DbSet<Device>(), 
          outerKeySelector: d => EF.Property<Guid?>(d, "DeviceId"), 
          innerKeySelector: d0 => EF.Property<Guid?>(d0, "ID"), 
          resultSelector: (o, i) => new TransparentIdentifier<DeviceVariable, Device>(
              Outer = o, 
              Inner = i
          ))
      .OrderBy(d => d.Inner.DeviceName)
      .ThenBy(d => new DeviceVariable_View{ 
          ID = d.Outer.ID, 
          DeviceId = d.Outer.DeviceId, 
          Name = d.Outer.Name, 
          Description = d.Outer.Description, 
          Method = d.Outer.Method, 
          DeviceAddress = d.Outer.DeviceAddress, 
          DataType = d.Outer.DataType, 
          Expressions = d.Outer.Expressions, 
          ProtectType = d.Outer.ProtectType, 
          DeviceName_view = d.Inner.DeviceName, 
          Device = d.Inner 
      }
      .Index)' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information.
     at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.<VisitMethodCall>g__CheckTranslated|15_0(ShapedQueryExpression translated, <>c__DisplayClass15_0& )
     at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression)
     at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor visitor)
     at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
     at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression)
     at System.Linq.Expressions.MethodCallExpression.Accept(


