Skip to content

Commit 90141c0

Browse files
committed
v0.2.4
1 parent 6620a83 commit 90141c0

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

src/NuExt.System.Data.SQLite.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ System.Data.SQLite.SQLiteDbConnection
1414
System.Data.SQLite.SQLiteDbContext
1515
System.Data.SQLite.SQLiteDbConverter
1616
System.Data.SQLite.SQLiteDbTransaction</Description>
17-
<Version>0.2.3</Version>
17+
<Version>0.2.4</Version>
1818
<RootNamespace />
1919
<GenerateDocumentationFile>True</GenerateDocumentationFile>
2020
<NoWarn>$(NoWarn);1591</NoWarn>
@@ -28,7 +28,7 @@ System.Data.SQLite.SQLiteDbTransaction</Description>
2828
</ItemGroup>
2929

3030
<ItemGroup Condition="'$(UseNuExtPackages)' == 'true'">
31-
<PackageReference Include="NuExt.System.Data" Version="0.2.3" />
31+
<PackageReference Include="NuExt.System.Data" Version="0.2.4" />
3232
</ItemGroup>
3333

3434
<ItemGroup Condition="'$(UseNuExtPackages)' == 'false'">

src/System/Data/SQLite/SQLiteDalBase.cs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,20 @@ namespace System.Data.SQLite
66
/// Represents an abstract base class for SQLite-specific Data Access Layer (DAL) operations,
77
/// providing a framework for database context management and execution of SQLite database-related actions.
88
/// </summary>
9-
public abstract class SQLiteDalBase : DalBase<SQLiteDbContext>
9+
/// <remarks>
10+
/// Initializes a new instance of the <see cref="SQLiteDalBase"/> class with the specified connection creation function.
11+
/// </remarks>
12+
/// <param name="createConnection">A function that creates a new <see cref="SQLiteDbConnection"/>.</param>
13+
/// <exception cref="ArgumentNullException">Thrown if <paramref name="createConnection"/> is null.</exception>
14+
public abstract class SQLiteDalBase(Func<SQLiteDbConnection> createConnection) : DalBase<SQLiteDbContext>
1015
{
11-
/// <summary>
12-
/// Initializes a new instance of the <see cref="SQLiteDalBase"/> class with the specified connection creation function.
13-
/// </summary>
14-
/// <param name="createConnection">A function that creates a new <see cref="SQLiteDbConnection"/>.</param>
15-
/// <exception cref="ArgumentNullException">Thrown if <paramref name="createConnection"/> is null.</exception>
16-
protected SQLiteDalBase(Func<SQLiteDbConnection> createConnection)
17-
{
18-
CreateConnection = createConnection ?? throw new ArgumentNullException(nameof(createConnection));
19-
}
2016

2117
#region Properties
2218

2319
/// <summary>
2420
/// Gets the function used to create a new <see cref="SQLiteDbConnection"/>.
2521
/// </summary>
26-
protected Func<SQLiteDbConnection> CreateConnection { get; }
22+
protected Func<SQLiteDbConnection> CreateConnection { get; } = createConnection ?? throw new ArgumentNullException(nameof(createConnection));
2723

2824
#endregion
2925

0 commit comments

Comments
 (0)