Quantcast
Channel: .Randomizzzer » LINQ
Viewing all articles
Browse latest Browse all 4

How To: Work with Dynamic Sitefinity Content and Complex Properties in LINQ

$
0
0
I’m trying to get a collection of DynamicContent items in Sitefinity. For example, if I’m trying to get the published and visible Case Studies (where, Case Study is a custom module in Sitefinity) I can use the following: IQueryable<DynamicContent> myCollection; var providerName = String.Empty; DynamicModuleManager dynamicModuleManager = DynamicModuleManager.GetManager(providerName); myCollection = dynamicModuleManager.GetDataItems(caseStudyType).Where(i => i.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live […]

Viewing all articles
Browse latest Browse all 4

Trending Articles