Skip to content

Commit d2a1bdd

Browse files
committed
v0.5.1
1 parent 4194e88 commit d2a1bdd

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src/NuExt.System.Data.SQLite.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ System.Data.SQLite.SQLiteDbConnection
1717
System.Data.SQLite.SQLiteDbContext
1818
System.Data.SQLite.SQLiteDbConverter
1919
System.Data.SQLite.SQLiteDbTransaction</Description>
20-
<Version>0.4.1</Version>
20+
<Version>0.5.1</Version>
2121
<RootNamespace />
2222
<GenerateDocumentationFile>True</GenerateDocumentationFile>
2323
<NoWarn>$(NoWarn);1591;NETSDK1233</NoWarn>
@@ -31,7 +31,7 @@ System.Data.SQLite.SQLiteDbTransaction</Description>
3131
</ItemGroup>
3232

3333
<ItemGroup Condition="'$(UseNuExtPackages)' == 'true'">
34-
<PackageReference Include="NuExt.System.Data" Version="0.4.1" />
34+
<PackageReference Include="NuExt.System.Data" Version="0.5.1" />
3535
</ItemGroup>
3636

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

src/System/Data/SQLite/SQLiteDbConnection.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public bool IsAcquired
7575
get
7676
{
7777
CheckDisposed();
78-
return _syncRoot.Mutex.IsEntered;
78+
return _syncRoot.Mutex.IsHeldByCurrentFlow;
7979
}
8080
}
8181

@@ -121,7 +121,7 @@ public void Close(ConnectionState originalState)
121121
QuietClose(originalState);
122122
}
123123

124-
protected override void OnDispose()
124+
protected override void DisposeCore()
125125
{
126126
Close();
127127
_conn.Dispose();
@@ -141,7 +141,7 @@ protected override void OnDispose()
141141
syncRoot.Dispose();
142142
}
143143
}
144-
base.OnDispose();
144+
base.DisposeCore();
145145
}
146146

147147
public void Open()

src/System/Data/SQLite/SQLiteDbConnectionFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ internal class AsyncLockCounter : Disposable
1212
#if DEBUG
1313
internal bool IsExpired => ReferenceCount <= 0;
1414
#endif
15-
protected override void OnDispose()
15+
protected override void DisposeCore()
1616
{
1717
Mutex.Dispose();
18-
base.OnDispose();
18+
base.DisposeCore();
1919
}
2020
}
2121

src/System/Data/SQLite/SQLiteDbContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ public void Commit()
9898
/// <summary>
9999
/// Disposes the resources used by this context.
100100
/// </summary>
101-
protected override void OnDispose()
101+
protected override void DisposeCore()
102102
{
103103
if (_checkAcquired)
104104
{
105105
CheckAcquired();
106106
}
107107
_lifetime.Dispose();
108-
base.OnDispose();
108+
base.DisposeCore();
109109
}
110110

111111
/// <summary>

src/System/Data/SQLite/SQLiteDbTransaction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void Commit()
8282
/// <summary>
8383
/// Disposes the resources used by this transaction.
8484
/// </summary>
85-
protected override void OnDispose()
85+
protected override void DisposeCore()
8686
{
8787
try
8888
{
@@ -96,7 +96,7 @@ protected override void OnDispose()
9696
var timeout = _connection.DefaultTimeout;
9797
Debug.Assert(elapsed.TotalSeconds < timeout, $"Transaction elapsed: {elapsed}, Expected: {timeout} sec");
9898
#endif
99-
base.OnDispose();
99+
base.DisposeCore();
100100
}
101101
}
102102

0 commit comments

Comments
 (0)