Показать сообщение отдельно
Старый 18.10.2013, 12:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,646 / 848 (80) +++++++
Регистрация: 28.10.2006
mscrmblog: CRM 2011 – Xrm Service Helper Class
Источник: http://mscrmblog.net/2013/10/18/crm-...-helper-class/
==============

For those using the CrmSvcUtil.exe tool to generate entity classes and service context. You can use this simple class to wrap your actions and return your desired result:

public static class CrmServiceRepository { public static TResult Execute(Func action) { using (var ctx = new XrmServiceContext("Xrm")) { return action(ctx); } } }More information on using the developer extensions at http://msdn.microsoft.com/en-us/library/gg695790.aspx



Источник: http://mscrmblog.net/2013/10/18/crm-...-helper-class/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.