Read<T>(reader, columnName) - fixed
pull/1/head
unknown 4 years ago
parent 572875c65f
commit a6df27d05b

@ -29,7 +29,7 @@ namespace ZeroLevel.SqLite
} }
protected static Tr Read<Tr>(SQLiteDataReader reader, string name) protected static Tr Read<Tr>(SQLiteDataReader reader, string name)
{ {
if (reader == null || HasColumn(reader, name) || reader[name] == DBNull.Value) return default; if (reader == null || !HasColumn(reader, name) || reader[name] == DBNull.Value) return default;
Type t; Type t;
if ((t = Nullable.GetUnderlyingType(typeof(Tr))) != null) if ((t = Nullable.GetUnderlyingType(typeof(Tr))) != null)
{ {

@ -1,10 +1,8 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data.SQLite; using System.Data.SQLite;
using System.IO;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
using ZeroLevel.Services.FileSystem;
using ZeroLevel.Services.Serialization; using ZeroLevel.Services.Serialization;
namespace ZeroLevel.SqLite namespace ZeroLevel.SqLite

@ -12,21 +12,21 @@ Based on System.Data.SQLite.Core</Description>
<PackageIcon>zero.png</PackageIcon> <PackageIcon>zero.png</PackageIcon>
<PackageIconUrl /> <PackageIconUrl />
<Platforms>AnyCPU;x64</Platforms> <Platforms>AnyCPU;x64</Platforms>
<PackageReleaseNotes>Move to new ZeroLevelVersion</PackageReleaseNotes> <PackageReleaseNotes>Fix bug</PackageReleaseNotes>
<AssemblyVersion>1.0.2.0</AssemblyVersion> <AssemblyVersion>1.0.2.1</AssemblyVersion>
<FileVersion>1.0.2.0</FileVersion> <FileVersion>1.0.2.1</FileVersion>
<Version>1.0.2</Version> <Version>1.0.2.1</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.112.1" /> <None Include="..\zero.png" Link="zero.png">
<PackagePath></PackagePath>
<Pack>True</Pack>
</None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="E:\Desktop\Developing\NUGET\zero.png"> <PackageReference Include="System.Data.SQLite.Core" Version="1.0.112.1" />
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

Loading…
Cancel
Save

Powered by TurnKey Linux.