Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use SqlMapperExentions.Table attribute on structs #162

Open
SRNissen opened this issue Sep 29, 2023 · 0 comments
Open

Cannot use SqlMapperExentions.Table attribute on structs #162

SRNissen opened this issue Sep 29, 2023 · 0 comments

Comments

@SRNissen
Copy link

SRNissen commented Sep 29, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant