Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Viewing all articles
Browse latest Browse all 1539

New Post: Use of Expression problem

$
0
0
The problem was because of this...
Expression<Func<TranslationText, bool>> expression;
            if (string.IsNullOrEmpty(neutralText))
                expression = FindLocalizedText(languageId, neutralText);
            else
                expression = FindLocalizedTextByLanguage(languageId);
Should be this instead :
Expression<Func<TranslationText, bool>> expression;
            if (string.IsNullOrEmpty(neutralText))
                expression = FindLocalizedTextByLanguage(languageId);
            else
                expression = FindLocalizedText(languageId, neutralText);

Viewing all articles
Browse latest Browse all 1539

Trending Articles



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