diff --git a/Dapper/ExplicitConstructorAttribute.cs b/Dapper/ExplicitConstructorAttribute.cs index d801af345..4d5580127 100644 --- a/Dapper/ExplicitConstructorAttribute.cs +++ b/Dapper/ExplicitConstructorAttribute.cs @@ -5,7 +5,10 @@ namespace Dapper /// /// Tell Dapper to use an explicit constructor, passing nulls or 0s for all parameters /// - [AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false)] + /// + /// Usage on methods is limited to the usage with Dapper.AOT (https://github.com/DapperLib/DapperAOT) + /// + [AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = false)] public sealed class ExplicitConstructorAttribute : Attribute { }