Esempio n. 1
0
        private void TryInitialize()
        {
            var map = Domain.Extensions.Get <TypeLocalizationMap>();

            if (map != null)
            {
                visitor = new LocalizationExpressionVisitor(map);
            }
        }
Esempio n. 2
0
        private void TryInitialize()
        {
            // if there is a context then query is from upgrade handler
            // so it is right to initialize localization here and allow user to
            // perform query.
            // Following initialization in IModule will be skipped
            if (Upgrade.UpgradeScope.CurrentContext != null)
            {
                TypeLocalizationMap.Initialize(Domain);
            }

            var map = Domain.Extensions.Get <TypeLocalizationMap>();

            if (map != null)
            {
                visitor = new LocalizationExpressionVisitor(map);
            }
        }