Skip to content

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

@DarylJtn

Description

@DarylJtn

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; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions