Y
Hacker News
new
|
ask
|
show
|
jobs
by
5e92cb50239222b
998 days ago
This is a solved problem in .NET, and C# only has one kind of string templating:
FormattableString foo = $"select * from {table} where {column} = 42";
https://learn.microsoft.com/en-us/ef/core/querying/sql-queri...
1 comments
kaba0
998 days ago
Not sure if C# can do that, but java’s implementation can return an arbitrary object based on the templates/parameters.
link