Skip to content

Commit

Permalink
Addressing IDE0290
Browse files Browse the repository at this point in the history
  • Loading branch information
Psichorex committed Jan 18, 2024
1 parent 57ac665 commit 1c04ea9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Lombiq.HelpfulLibraries.LinqToDb/LinqToDbConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@

namespace Lombiq.HelpfulLibraries.LinqToDb;

public class LinqToDbConnection : DataConnection, ITableAccessor
public class LinqToDbConnection(
IDataProvider dataProvider,
DbTransaction dbTransaction,
string tablePrefix) : DataConnection(dataProvider, dbTransaction), ITableAccessor
{
private readonly string _tablePrefix;

public LinqToDbConnection(IDataProvider dataProvider, DbTransaction dbTransaction, string tablePrefix)
: base(dataProvider, dbTransaction) =>
_tablePrefix = tablePrefix;
private readonly string _tablePrefix = tablePrefix;

/// <summary>
/// For the current query, overrides <see cref="ITable{T}.TableName"/> of the table-like source
Expand Down

0 comments on commit 1c04ea9

Please sign in to comment.