How to query IContent with IQuery by Culture Specific Name
Hello,
I have a case where I want to use the IContentService.GetPagedChildren with an IQuery. I have a multilanguage website and I want to query for Content which name starts with particular string. So, here is my query
var filter = _sqlContext.Query<IContent>().Where(x => x.Name.Contains("DOESNT_MATTER"));
But this doesn't consider the culture specific name and always checks for the default Language name. And if I try with this, it throws "Not supported" error.
var filter = _sqlContext.Query<IContent>().Where(x => x.GetCultureName(culture).Contains("DOESNT_MATTER"));
How to query IContent with IQuery by Culture Specific Name
Hello,
I have a case where I want to use the IContentService.GetPagedChildren with an IQuery. I have a multilanguage website and I want to query for Content which name starts with particular string. So, here is my query
But this doesn't consider the culture specific name and always checks for the default Language name. And if I try with this, it throws "Not supported" error.
Any ideas on how to accoplish what I want?
is working on a reply...