예제 #1
0
        /// <summary>
        /// Crear el objeto SilverlightConnectionObject.
        /// </summary>
        /// <param name="from">Objeto IConnection origen de ConnectionSilverlight.</param>
        /// <param name="targetTable">Objeto IConnection destino de ConnectionSilverlight.</param>
        private void CreateConnection(IConnection from, IConnection target)
        {
            if (from == null)
            {
                throw new ArgumentNullException("from", "from can not be null.");
            }
            if (target == null)
            {
                throw new ArgumentNullException("target", "target can not be null.");
            }

            ConnectionSilverlight connection = new ConnectionSilverlight(from, target);

            serviceDocument.AddConnection(connection.Connection);
            AddRelation(connection);
        }