コード例 #1
0
        public static IEnumerable <IRecord> GetRecordsForConfig(string recordType, IRecordService service, string websiteId)
        {
            var config = GetConfigFor(recordType);
            var query  = new QueryDefinition(recordType);

            if (config.Conditions != null)
            {
                query.RootFilter.Conditions.AddRange(config.Conditions);
            }
            service.AddJoinCondition(query, config.WebSiteField, ConditionType.Equal, websiteId);
            return(service.RetreiveAll(query));
        }