Skip to content

Commit

Permalink
remove the BulkCopy.Register API until I have chance to test it
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell committed Aug 30, 2019
1 parent 343d36b commit e6f6350
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dapper.ProviderTools/BulkCopy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ public static BulkCopy Create(DbConnection connection)
return bcp;
}

/// <summary>
/// Provide an external registration for a given connection type
/// </summary>
public static void Register(Type type, Func<DbConnection, object>? factory)
=> s_bcpFactory[type] = factory;
///// <summary>
///// Provide an external registration for a given connection type
///// </summary>
//public static void Register(Type type, Func<DbConnection, BulkCopy> factory)
//{
// throw new NotImplementedException();
//}

private static readonly ConcurrentDictionary<Type, Func<DbConnection, object>?> s_bcpFactory
= new ConcurrentDictionary<Type, Func<DbConnection, object>?>();
Expand Down

0 comments on commit e6f6350

Please sign in to comment.