AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 05.11.2008, 02:14   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
Microsoft Dynamics CRM Team Blog: Debugging Dynamic Entities in CRM 4.0
Источник: http://blogs.msdn.com/crm/archive/20...n-crm-4-0.aspx
==============

Recently, I've been spending quite a bit of time with the Microsoft Dynamics CRM SDK, building custom plug-ins for CRM 4.0. One of the tricky aspects of working with the IPlugin interface is that you have to use the DynamicEntity class when accessing the InputParameters and OutputParameters properties of the IPluginExecutionContext interface.



This wouldn't be so bad, except that it is a real pain trying to find out what properties and values are actually contained within a Dynamic Entity whilst debugging and so I kept having to write the same "test" code over and over again just to examine their contents. However, a couple of months ago I found out you can extend Visual Studio to provide this support by implementing a custom “debugger visualizer”. Visualizers are represented in the Visual Studio debugger by the magnifying glass icon. When you see the magnifying glass in a DataTip, in a debugger variables window or in the QuickWatch dialog box, you can click on the magnifying glass to select a visualizer appropriate to the data type of the corresponding object.







After playing around with Microsoft Visual Studio for a few hours I came up with a really cool visualizer that provides detailed info about any dynamics entity when debugging a plug-in. I posted a detailed article on my blog, including all the source code for you to use in your own development project, which you can find here - http://blogs.msdn.com/ukcrm/archive/...-entities.aspx



Happy debugging,

Simon Hutson



Источник: http://blogs.msdn.com/crm/archive/20...n-crm-4-0.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Полезные ссылки по MS CRM. IgorF Dynamics CRM: Прочие вопросы 60 24.05.2013 16:19
Microsoft Dynamics CRM Team Blog: List Web Part for Microsoft Dynamics CRM 4.0 Deployment Scenarios Blog bot Dynamics CRM: Blogs 0 30.01.2009 22:05
Microsoft Dynamics CRM Team Blog: Microsoft Dynamics CRM 4.0 Bookshelf Blog bot Dynamics CRM: Blogs 1 22.01.2009 04:46
Microsoft Dynamics CRM Team Blog: Highlight: Available downloads for Microsoft Dynamics CRM Blog bot Dynamics CRM: Blogs 0 05.11.2008 22:05
Microsoft Dynamics CRM Team Blog: Top 14 Microsoft Dynamics CRM Sites and Downloads Blog bot Dynamics CRM: Blogs 0 14.07.2008 13:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 19:37.