Exemplo n.º 1
0
        public override int ExecuteNonQuery()
        {
            Debug.WriteLine("CrmDbCommand.ExecuteNonQuery()", "CrmDbCommand");
            EnsureHasCommandText();
            EnsureOpenConnection();
            // Generate the IOrgCommand.
            ICrmOperation orgCommand = ToOrgCommand(CommandBehavior.Default);

            // Execute the IOrgCommand and return the result.
            return(_CrmCommandExecutor.ExecuteNonQueryOperation(orgCommand));
        }