Skip to content

Commit

Permalink
Added a implementation to CopyTo on MySqlParameterCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
jrocha committed Oct 9, 2018
1 parent 7eb4873 commit d692cca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public MySqlParameter AddWithValue(string parameterName, object value)

public override bool Contains(string value) => IndexOf(value) != -1;

public override void CopyTo(Array array, int index) => throw new NotSupportedException();
public override void CopyTo(Array array, int index) => ((ICollection) m_parameters).CopyTo( array, index);

public override void Clear()
{
Expand Down
6 changes: 3 additions & 3 deletions src/MySqlConnector/MySqlConnector.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net45;net461;netstandard1.3;netstandard2.0;netcoreapp2.1</TargetFrameworks>
Expand All @@ -10,8 +10,8 @@
<PackageId>MySqlConnector</PackageId>
<PackageTags>mysql;mysqlconnector;async;ado.net;database;netcore</PackageTags>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyVersion>0.45.2.0</AssemblyVersion>
<Version>0.45.2</Version>
<AssemblyVersion>0.45.3.0</AssemblyVersion>
<Version>0.45.3</Version>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net461' ">
Expand Down

0 comments on commit d692cca

Please sign in to comment.