Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: DataFacade.GetData not working reliable

$
0
0
If you're using DataConnection, there's no need to call ThreadDataManager.EnsureInitialized().

Usage of DataFacade is not recommended, as it a more low level operation and, as for now, requires creating a thread data for it, as well as "data scope"
using(ThreadDataManager.EnsureInitialized) 
using(new DataScope(publicationScope, cultureInfo) {
  ....
}

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>