Skip to content

Commit

Permalink
include ExplicitConstructorAttribute's targets to constructor&method (#…
Browse files Browse the repository at this point in the history
…1982)

* add method target for explicitconstructor

* add a noting comment (usage is limited with Dapper.AOT)
  • Loading branch information
DeagleGross authored Oct 22, 2023
1 parent 2f56056 commit f0e61a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dapper/ExplicitConstructorAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ namespace Dapper
/// <summary>
/// Tell Dapper to use an explicit constructor, passing nulls or 0s for all parameters
/// </summary>
[AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false)]
/// <remarks>
/// Usage on methods is limited to the usage with Dapper.AOT (https://github.com/DapperLib/DapperAOT)
/// </remarks>
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method, AllowMultiple = false)]
public sealed class ExplicitConstructorAttribute : Attribute
{
}
Expand Down

0 comments on commit f0e61a7

Please sign in to comment.