DapperLib / Dapper.Contrib

Dapper community contributions - additional extensions for Dapper
Other
267 stars 99 forks source link

Cannot use SqlMapperExentions.Table attribute on structs #162

Open SRNissen opened 1 year ago

SRNissen commented 1 year ago

As it says in the title

    /// <summary>
    /// Defines the name of a table to use in Dapper.Contrib commands.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)] <------ right here
    public class TableAttribute : Attribute
    {

Is there any technical reason for this limitation or is that just how it got implemented?