remove the BulkCopy.Register API until I have chance to test it

This commit is contained in:
mgravell
2019-08-30 16:24:18 +01:00
parent 343d36b5c3
commit e6f63507bf
+7 -5
View File
@@ -44,11 +44,13 @@ namespace Dapper.ProviderTools
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>?>();