Skip to content

Commit 1e7c62c

Browse files
committed
release 1.2.8
1 parent 8a093ba commit 1e7c62c

File tree

5 files changed

+27
-11
lines changed

5 files changed

+27
-11
lines changed

Databasic.MySql.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata minClientVersion="2.6">
44
<id>Databasic.MySql</id>
5-
<version>1.2.6.0</version>
5+
<version>1.2.8.0</version>
66
<title>Databasic - MySql/MariaDb</title>
77
<authors>Tom Flidr</authors>
88
<owners>Tom Flidr</owners>
@@ -18,7 +18,7 @@
1818
<tags>sql mysql mariadb database query command select insert update delete pure sql dml tool utility library</tags>
1919
<dependencies>
2020
<dependency id="MySql.Data" version="6.8.8.0" />
21-
<dependency id="Databasic.Core" version="1.2.4.0" />
21+
<dependency id="Databasic.Core" version="1.2.8.0" />
2222
</dependencies>
2323
<frameworkAssemblies>
2424
<frameworkAssembly assemblyName="System.Core" />

Databasic.MySql.vbproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
<PropertyGroup>
4343
<OptionInfer>On</OptionInfer>
4444
</PropertyGroup>
45+
<PropertyGroup>
46+
<SignAssembly>true</SignAssembly>
47+
</PropertyGroup>
48+
<PropertyGroup>
49+
<AssemblyOriginatorKeyFile>Tom Flidr - .NET.pfx</AssemblyOriginatorKeyFile>
50+
</PropertyGroup>
4551
<ItemGroup>
4652
<Reference Include="MySql.Data, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" />
4753
<Reference Include="System" />
@@ -104,6 +110,7 @@
104110
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
105111
</None>
106112
<None Include="packages.config" />
113+
<None Include="Tom Flidr - .NET.pfx" />
107114
<None Include="_CreateNewNuGetPackage\Config.ps1" />
108115
<None Include="_CreateNewNuGetPackage\DoNotModify\CreateNuGetPackage.ps1" />
109116
<None Include="_CreateNewNuGetPackage\DoNotModify\New-NuGetPackage.ps1" />

My Project/AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ Imports System.Runtime.InteropServices
3434
' by using the '*' as shown below:
3535
' <Assembly: AssemblyVersion("1.0.*")>
3636

37-
<Assembly: AssemblyVersion("1.2.6.0")>
38-
<Assembly: AssemblyFileVersion("1.2.6.0")>
37+
<Assembly: AssemblyVersion("1.2.8.0")>
38+
<Assembly: AssemblyFileVersion("1.2.8.0")>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Databasic - MySQL/MariaDB
22

3-
[![Latest Stable Version](https://img.shields.io/badge/Stable-v1.2.6-brightgreen.svg?style=plastic)](https://github.com/databasic-net/databasic-core/releases)
3+
[![Latest Stable Version](https://img.shields.io/badge/Stable-v1.2.8-brightgreen.svg?style=plastic)](https://github.com/databasic-net/databasic-core/releases)
44
[![License](https://img.shields.io/badge/Licence-BSD3-brightgreen.svg?style=plastic)](https://raw.githubusercontent.com/databasic-net/databasic-core/master/LICENCE.md)
55
![.NET Version](https://img.shields.io/badge/.NET->=4.0-brightgreen.svg?style=plastic)
66

Statement.vb

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Imports System.ComponentModel
1+
Imports System.ComponentModel
22
Imports System.Data.Common
33
Imports MySql.Data.MySqlClient
44

@@ -74,9 +74,13 @@ Public Class Statement
7474
Dim sqlParamValue As Object
7575
For Each prop As PropertyDescriptor In TypeDescriptor.GetProperties(sqlParams)
7676
sqlParamValue = prop.GetValue(sqlParams)
77+
If (sqlParamValue Is Nothing) Then
78+
sqlParamValue = DBNull.Value
79+
Else
80+
sqlParamValue = Me.getPossibleUnderlyingEnumValue(sqlParamValue)
81+
End If
7782
Me._cmd.Parameters.AddWithValue(
78-
prop.Name,
79-
If((sqlParamValue Is Nothing), DBNull.Value, sqlParamValue)
83+
prop.Name, sqlParamValue
8084
)
8185
Next
8286
End If
@@ -86,12 +90,17 @@ Public Class Statement
8690
''' </summary>
8791
''' <param name="sqlParams">Dictionary with named keys as MySQL/MariaDB statement params without any '@' chars in dictionary keys.</param>
8892
Protected Overrides Sub addParamsWithValue(sqlParams As Dictionary(Of String, Object))
93+
Dim sqlParamValue As Object
8994
If (Not sqlParams Is Nothing) Then
9095
For Each pair As KeyValuePair(Of String, Object) In sqlParams
96+
If (pair.Value Is Nothing) Then
97+
sqlParamValue = DBNull.Value
98+
Else
99+
sqlParamValue = Me.getPossibleUnderlyingEnumValue(pair.Value)
100+
End If
91101
Me._cmd.Parameters.AddWithValue(
92-
pair.Key,
93-
If((pair.Value Is Nothing), DBNull.Value, pair.Value)
94-
)
102+
pair.Key, sqlParamValue
103+
)
95104
Next
96105
End If
97106
End Sub

0 commit comments

Comments
 (0)