Skip to content

Commit

Permalink
Fix CopyRecordTo, add sourcelink
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtule committed Jan 24, 2019
1 parent 930fd4d commit d738137
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
8 changes: 5 additions & 3 deletions DotNetDBF.Enumerable/DotNetDBF.Enumerable.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,25 @@
<Company>Ekon Benefits</Company>
<Description>For dotnetdbf projects using .net 4.0 projects this is an enumeration framework in which makes it easy to use Linq to Objects.</Description>
<PackageLicense>lgpl</PackageLicense>
<PackageProjectUrl>http://code.google.com/p/dotnetdbf/</PackageProjectUrl>
<PackageProjectUrl>https://github.com/ekonbenefits/dotnetdbf</PackageProjectUrl>
<PackageTags>clipper xbase dbf linq</PackageTags>
<PackageLicenseExpression>LGPL-2.1-or-later</PackageLicenseExpression>
<PackageIconUrl>https://github.com/ekonbenefits/dotnetdbf</PackageIconUrl>
<RepositoryUrl>https://github.com/ekonbenefits/dotnetdbf.git</RepositoryUrl>
<RepositoryType>gits</RepositoryType>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>6.0.0.1</Version>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Version>6.0.0.2</Version>
<IncludeSymbols>True</IncludeSymbols>
<IncludeSource>True</IncludeSource>
</PropertyGroup>
<ItemGroup>
<None Include="..\Copying.txt" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ImpromptuInterface" Version="7.0.1" />
Expand Down
11 changes: 9 additions & 2 deletions DotNetDBF.Enumerable/Enumerable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,15 @@ public static void CopyRecordTo(this IDBFInterceptor original, IDBFInterceptor d
{
foreach (var fieldName in Dynamitey.Dynamic.GetMemberNames(dest, true))
{
var val = Dynamic.InvokeGet(original, fieldName);
Dynamic.InvokeSet(dest, fieldName, val);
try
{
var val = Dynamic.InvokeGet(original, fieldName);
Dynamic.InvokeSet(dest, fieldName, val);
}
catch
{
// ignored
}
}
}

Expand Down
8 changes: 6 additions & 2 deletions DotNetDBF/DotNetDBF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFrameworks>net35;netstandard1.3;netstandard2.0</TargetFrameworks>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>sn.snk</AssemblyOriginatorKeyFile>
<Version>6.0.0.1</Version>
<Version>6.0.0.2</Version>
<Company>Ekon Benefits</Company>
<Copyright>Copyright 2009-2017</Copyright>
<Description>This is a basic file parser for reading and writing xBase DBF files particularlly Clipper. Code originally derived from javadbf.</Description>
Expand All @@ -17,14 +17,18 @@
<IncludeSymbols>True</IncludeSymbols>
<IncludeSource>True</IncludeSource>
<PackageLicenseExpression>LGPL-2.1-or-later</PackageLicenseExpression>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup>
<None Include="..\Copying.txt" Pack="true" PackagePath=""/>
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='netstandard1.3'">
<PackageReference Include="System.Data.Common" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All"/>
</ItemGroup>

<ItemGroup>
<Compile Remove="original java src\**" />
Expand Down

0 comments on commit d738137

Please sign in to comment.