private string GetIntellisense2(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 JsIntellisense2(CrmService)
            {
                ProcessForms  = processForms,
                IsDebugForm   = isDebugForm,
                IsDebugWebApi = isDebugWebApi,
                IsJsWebApi    = isJsWebApi,
                ProjectName   = ProjectName,
                EntityName    = EntityName,
                Fields        = Fields,
                Processes     = Processes
            };

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

            return(jsIntellisense.Intellisense);
        }