Commit e6f63507 authored by mgravell's avatar mgravell

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

parent 343d36b5
......@@ -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>?>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment