From af97a4104080536c7e431a8a8b62ee0b2f25d9d7 Mon Sep 17 00:00:00 2001 From: Marc Gravell Date: Tue, 14 Nov 2023 12:41:36 +0000 Subject: [PATCH] fqn --- docs/generatedcode.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/generatedcode.md b/docs/generatedcode.md index 9090efed..8aef4b8e 100644 --- a/docs/generatedcode.md +++ b/docs/generatedcode.md @@ -164,6 +164,9 @@ The generated code *isn't scary*. It might be lengthy for large projects, but ea is clear, since we always need to check the *actual* column name (because of the risk of hash collisions). Depending on your exact usage, there may be some additional pieces that we haven't explored here, but the intent is usually fairly clear (and the generated code contains explanatory comments, as shown). +The code looks a little *unusual* because it eschews `using` directives, instead preferring to fully-qualify types (`global::System.Data.IDbConnection` etc). This is because *when dealing with arbitrary user code* +it is impossible to rule out the chance of conflicts and ambiguities with user types. When generating code, using fully qualified syntax simply makes a lot of sense. + Using this approach: 1. you don't need to change your code; your existing `Dapper` code works, but now with AOT