![]() |
#1 |
Участник
|
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, напишите личное сообщение администратору. |
|
|
|