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) ...@@ -44,11 +44,13 @@ public static BulkCopy Create(DbConnection connection)
return bcp; return bcp;
} }
/// <summary> ///// <summary>
/// Provide an external registration for a given connection type ///// Provide an external registration for a given connection type
/// </summary> ///// </summary>
public static void Register(Type type, Func<DbConnection, object>? factory) //public static void Register(Type type, Func<DbConnection, BulkCopy> factory)
=> s_bcpFactory[type] = factory; //{
// throw new NotImplementedException();
//}
private static readonly ConcurrentDictionary<Type, Func<DbConnection, object>?> s_bcpFactory private static readonly ConcurrentDictionary<Type, Func<DbConnection, object>?> s_bcpFactory
= new ConcurrentDictionary<Type, Func<DbConnection, object>?>(); = 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