This is a common issue, and most developers I worked with are not aware of it until they see the performance issues.
Most people are not aware of how Dapper maps types under the hood; once you know, you start being careful about it.
Nothing to do with LLMs, just plain old learning through mistakes.