Esempio n. 1
0
        internal override bool SetInnerConnectionFrom(DbConnection owningObject, DbConnectionInternal to, DbConnectionInternal from)
        {
            SqlConnection c = (owningObject as SqlConnection);

            if (null != c)
            {
                return(c.SetInnerConnectionFrom(to, from));
            }
            return(false);
        }
        internal override bool SetInnerConnectionFrom(DbConnection owningObject, DbConnectionInternal to, DbConnectionInternal from)
        {
            SqlConnection connection = owningObject as SqlConnection;

            return((connection != null) && connection.SetInnerConnectionFrom(to, from));
        }