Beispiel #1
0
        static void Main(string[] args)
        {
            OrganizationServiceProxy serviceProxy = ConnectHelper.CrmService;
            var          service      = (IOrganizationService)serviceProxy;
            ServiceClass serviceClass = new ServiceClass(service);

            serviceClass.MainMethod();
            string var = null;
        }
        static void Main(string[] args)
        {
            OrganizationServiceProxy serviceProxy = ConnectHelper.CrmService;
            var          service      = (IOrganizationService)serviceProxy;
            Entity       someEnt      = service.Retrieve("myprefix_gu_main", new Guid("EEACCB31-AD40-E911-8115-00155D05FA01"), new ColumnSet(true));
            ServiceClass serviceClass = new ServiceClass(service);

            serviceClass.MainMethod();
            string var = null;
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            OrganizationServiceProxy serviceProxy = ConnectHelper.CrmService;
            var service = (IOrganizationService)serviceProxy;
            //Entity someEnt = service.Retrieve("new_pinktest", new Guid("B10F2561-CD53-E911-8117-00155D05FA01"), new ColumnSet(true));
            ServiceClass serviceClass = new ServiceClass(service);
            //serviceClass.MainMethod();

            //serviceClass.MainMethod2(); //деактивировация

            //Обращение к црм с использование контекста.
            //serviceClass.MainMethod3(new Guid("{B10F2561-CD53-E911-8117-00155D05FA01}"), serviceProxy);
            // N-N example
            //serviceClass.MainMethodRelationShip(serviceProxy);

            string var = null;
        }