I don't know about you, but I really like to get inside all sorts of systems. In this article, I’m going to tell you about the internals of Lua tables and special considerations for their use. Lua is my primary professional programming language, and if one wants to write good code, one needs at least to peek behind the curtain. If you are curious, follow me.
91.21
Rating
Designing and refactoring *
Reorganizing the code
Show first
Rating limit
Level of difficulty
Let's help QueryProvider deal with interpolated strings
5 min
1.6K
Translation
Specifics of QueryProvider
QueryProvider can’t deal with this:
var result = _context.Humans
.Select(x => $"Name: {x.Name} Age: {x.Age}")
.Where(x => x != "")
.ToList();
It can’t deal with any sentence using an interpolated string, but it’ll easily deal with this:
var result = _context.Humans
.Select(x => "Name " + x.Name + " Age " + x.Age)
.Where(x => x != "")
.ToList();
The most painful thing is to fix bugs after turning on ClientEvaluation (exception for client-side calculation), since all Automapper profiles should be strictly analyzed for interpolation. Let’s find out what’s what and propose our solution to the problem.
Authors' contribution
-
SergeyT 594.4 -
m1rko 517.6 -
AloneCoder 504.8 -
alizar 455.7 -
marshinov 412.8 -
fillpackart 349.0 -
tangro 309.0 -
ph_piter 256.4 -
dartmessiah 233.0 -
m36 218.0