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

Build error due to read only Transaction in Dapper.Rainbow #2044

Closed
DarylJtn opened this issue Feb 17, 2024 · 0 comments · Fixed by #2045
Closed

Build error due to read only Transaction in Dapper.Rainbow #2044

DarylJtn opened this issue Feb 17, 2024 · 0 comments · Fixed by #2045

Comments

@DarylJtn
Copy link
Contributor

Hi,
I'm getting an error when attempting to build the Dapper.Rainbow project

Property or indexer 'Database<TDatabase>.Transaction' cannot be assigned to -- it is read only
Error in github Actions

The Transaction property was recently changed to Read-only causing the problem .

adding private set; will allow the Transaction to be updated within the class while keeping it protected from being updated outside of the class

/// <summary>
/// Get access to the underlying transaction
/// </summary>
public DbTransaction Transaction { get; private set; }
DarylJtn added a commit to DarylJtn/Dapper that referenced this issue Feb 17, 2024
mgravell pushed a commit that referenced this issue Feb 17, 2024
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

Successfully merging a pull request may close this issue.

1 participant