private string GetIntellisense(List <SystemForm> processForms, bool isDebugForm, bool isJsWebApi, bool isDebugWebApi)
        {
            if (isJsWebApi)
            {
                foreach (var crmAttribute in Fields)
                {
                    if (crmAttribute.FieldType == AttributeTypeCode.Lookup || crmAttribute.FieldType == AttributeTypeCode.Customer)
                    {
                        crmAttribute.LogicalCollectionName  = GetLogicalCollectionName(crmAttribute);
                        crmAttribute.NavigationPropertyName = GetNavigationPropertyName(crmAttribute);
                    }
                }
            }
            var jsIntellisense = new JsIntellisense(CrmService)
            {
                ProcessForms  = processForms,
                IsDebugForm   = isDebugForm,
                IsDebugWebApi = isDebugWebApi,
                IsJsWebApi    = isJsWebApi,
                ProjectName   = ProjectName,
                EntityName    = EntityName,
                Fields        = Fields,
                Processes     = Processes
            };

            return(jsIntellisense.Intellisense);
        }
Esempio n. 2
0
        private string GetIntellisense(List <SystemForm> processForms, bool isDebugForm, bool isJsWebApi, bool isDebugWebApi)
        {
            var jsIntellisense = new JsIntellisense(CrmService)
            {
                ProcessForms  = processForms,
                IsDebugForm   = isDebugForm,
                IsDebugWebApi = isDebugWebApi,
                IsJsWebApi    = isJsWebApi,
                ProjectName   = ProjectName,
                EntityName    = EntityName,
                Fields        = Fields,
                Processes     = Processes
            };

            return(jsIntellisense.Intellisense);
        }