Skip to content

Commit 5c49d03

Browse files
committed
v0.7.0
1 parent 99b36ff commit 5c49d03

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024-2025 IvanGit
3+
Copyright (c) 2024-2026 IvanGit
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/NuExt.System.Data.SQLite.csproj

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.1;netstandard2.0;net10.0;net9.0;net8.0;net471;net462</TargetFrameworks>
5-
<!-- System.ValueTuple is inbox on .NET Framework >= 4.7.1 and therefore any potential redirect for it should be removed.
6-
This is necessary as the assembly version in the already shipped packages is higher than what's provided inbox on .NET Framework. -->
75
<Nullable>enable</Nullable>
86
<ImplicitUsings>enable</ImplicitUsings>
9-
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors>
107
<GeneratePackageOnBuild Condition="'$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>
118
<PackageTags>nuext;sqlite;database;ado.net;provider;interop;async</PackageTags>
129
<Description>Provides SQLite database engine extensions.
@@ -17,7 +14,7 @@ System.Data.SQLite.SQLiteDbConnection
1714
System.Data.SQLite.SQLiteDbContext
1815
System.Data.SQLite.SQLiteDbConverter
1916
System.Data.SQLite.SQLiteDbTransaction</Description>
20-
<Version>0.6.0</Version>
17+
<Version>0.7.0</Version>
2118
<RootNamespace />
2219
<GenerateDocumentationFile>True</GenerateDocumentationFile>
2320
<NoWarn>$(NoWarn);1591;NETSDK1233</NoWarn>
@@ -31,7 +28,7 @@ System.Data.SQLite.SQLiteDbTransaction</Description>
3128
</ItemGroup>
3229

3330
<ItemGroup Condition="'$(UseNuExtPackages)' == 'true'">
34-
<PackageReference Include="NuExt.System.Data" Version="0.6.0" />
31+
<PackageReference Include="NuExt.System.Data" Version="0.7.0" />
3532
</ItemGroup>
3633

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

src/System/Data/SQLite/SQLiteDbConnectionFactory.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace System.Data.SQLite
1+
using System.ComponentModel;
2+
3+
namespace System.Data.SQLite
24
{
35
internal class SQLiteDbConnectionFactory
46
{

src/System/Data/SQLite/SQLiteDbContext.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Diagnostics;
1+
using System.ComponentModel;
2+
using System.Diagnostics;
23
using System.Runtime.CompilerServices;
34

45
namespace System.Data.SQLite
@@ -10,7 +11,11 @@ namespace System.Data.SQLite
1011
public sealed class SQLiteDbContext: Disposable, IDbContext
1112
{
1213
private readonly SQLiteDbTransaction _transaction;
13-
private readonly Lifetime _lifetime = new();
14+
private readonly Lifetime _lifetime = new Lifetime()
15+
#if DEBUG
16+
.SetDebugInfo()
17+
#endif
18+
;
1419
private readonly bool _checkAcquired;
1520

1621
/// <summary>

src/System/Data/SQLite/SQLiteDbConverter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ public override Version GetDbVersion(SQLiteDbConnection connection, Cancellation
8181
/// </summary>
8282
/// <param name="connection">The database connection to use for performing the updates.</param>
8383
/// <param name="cancellationToken">Cancellation token to cancel the execution.</param>
84-
/// <returns><c>true</c> if the update operations were successful; otherwise, <c>false</c>.</returns>
84+
/// <returns><see langword="true"/> if the update operations were successful; otherwise, <see langword="false"/>.</returns>
8585
protected abstract bool PerformUpdate(SQLiteDbConnection connection, CancellationToken cancellationToken);
8686

8787
/// <summary>
8888
/// Determines whether the database requires an update to match the version specified by this converter.
8989
/// </summary>
9090
/// <param name="connection">The database connection to check.</param>
9191
/// <param name="cancellationToken">Cancellation token to cancel the execution.</param>
92-
/// <returns><c>true</c> if the database requires an update; otherwise, <c>false</c>.</returns>
92+
/// <returns><see langword="true"/> if the database requires an update; otherwise, <see langword="false"/>.</returns>
9393
public override bool RequiresUpdate(SQLiteDbConnection connection, CancellationToken cancellationToken)
9494
{
9595
using var _ = connection.SuspendAsserts();
@@ -111,7 +111,7 @@ public override bool RequiresUpdate(SQLiteDbConnection connection, CancellationT
111111
/// <param name="connection">The database connection to use for adding version information.</param>
112112
/// <param name="dbVersion">The version value to insert into the version table.</param>
113113
/// <param name="cancellationToken">Cancellation token to cancel the execution.</param>
114-
/// <returns><c>true</c> if the version information was successfully added; otherwise, <c>false</c>.</returns>
114+
/// <returns><see langword="true"/> if the version information was successfully added; otherwise, <see langword="false"/>.</returns>
115115
protected bool TryAddDbInfo(SQLiteDbConnection connection, string dbVersion, CancellationToken cancellationToken)
116116
{
117117
connection.ExecuteNonQuery(CreateVersionTable, cancellationToken: cancellationToken);
@@ -128,7 +128,7 @@ protected bool TryAddDbInfo(SQLiteDbConnection connection, string dbVersion, Can
128128
/// </summary>
129129
/// <param name="connection">The database connection to use for performing the update.</param>
130130
/// <param name="cancellationToken">Cancellation token to cancel the execution.</param>
131-
/// <returns><c>true</c> if the update operations were successful; otherwise, <c>false</c>.</returns>
131+
/// <returns><see langword="true"/> if the update operations were successful; otherwise, <see langword="false"/>.</returns>
132132
public sealed override bool Update(SQLiteDbConnection connection, CancellationToken cancellationToken)
133133
{
134134
Debug.Assert(connection.InTransaction);

0 commit comments

Comments
 (0)