System.Data.Common.DbDataAdapter.GetConnection3 C# (CSharp) Method

GetConnection3() private static method

private static GetConnection3 ( DbDataAdapter adapter, IDbCommand command, string method ) : IDbConnection
adapter DbDataAdapter
command IDbCommand
method string
return IDbConnection
        private static IDbConnection GetConnection3(DbDataAdapter adapter, IDbCommand command, string method)
        {
            Debug.Assert(null != command, "GetConnection3: null command");
            Debug.Assert(!string.IsNullOrEmpty(method), "missing method name");
            IDbConnection connection = command.Connection;
            if (null == connection)
            {
                throw ADP.ConnectionRequired_Res(method);
            }
            return connection;
        }