public async Task <JsonResult> GetDataModelSchema(string customEntityDefinitionCode)
        {
            var query        = new GetCustomEntityDataModelSchemaDetailsByDefinitionCodeQuery(customEntityDefinitionCode);
            var jsonResponse = await _apiResponseHelper.RunQueryAsync(query);

            var settings = _dynamicDataModelSchemaJsonSerializerSettingsCache.GetInstance();

            jsonResponse.SerializerSettings = settings;

            return(jsonResponse);
        }
Beispiel #2
0
        public IDomainRepositoryQueryContext <CustomEntityDataModelSchema> AsDetails()
        {
            var query = new GetCustomEntityDataModelSchemaDetailsByDefinitionCodeQuery(_customEntityDefinitionCode);

            return(DomainRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }