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

any work around to avoid using attributes? #1487

Closed
yekanchi opened this issue Jun 17, 2020 · 1 comment
Closed

any work around to avoid using attributes? #1487

yekanchi opened this issue Jun 17, 2020 · 1 comment

Comments

@yekanchi
Copy link

yekanchi commented Jun 17, 2020

I'm using Dapper and have base class Entity in my domain project, which is separated from my repository layer. because of using dapper in my repository layer i have to use [key] and [ExplicitKey] with bunch of other attributes like [table] and [write(false)] in my Domain Project.

Is there any work around to specify those attributes in my repository layer so i don't have to reference Dapper and Dapper.Contrlib in my domain layer.

@NickCraver
Copy link
Member

There isn't yet, but will be in v3 - see #722 on this front. You'll be able to do this programmatically not just with attributes in the current plan - please add any ideas to #722!

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

2 participants