In the xConnect model
, we have a property with dictionary type and when we try to put it in a lambda expression
for some logic it fires back.
Sample Model:
public class eBikeContactFacet : Facet
{
public DateTime NewsletterChangedOn { get; set; }
public string SourceOfLead { get; set; }
public string ContactType { get; set; }
public Dictionary<string, eBikeTrainingFacet> Trainings { get; set; }
}
How we fetch:
var trainingContacts = client.Contacts.Where(c => c.GetFacet<eBikeContactFacet>() != null && c.GetFacet<eBikeContactFacet>().GlobalBoschID!=null).ToList();
It gives me an error System.AggregateException: One or more errors occurred. ---> Sitecore.XConnect.Schema.XdbModelException: Unsupported value type Sitecore.XConnect.Schema.XdbFacetType
Looks like Dictionary is not supported?
Did anyone face this before, kindly help.