public void RegisterAllFactTypes(Community community, IDictionary <Type, IFieldSerializer> fieldSerializerByType) { community.AddType( Individual._correspondenceFactType, new Individual.CorrespondenceFactFactory(fieldSerializerByType), new FactMetadata(new List <CorrespondenceFactType> { Individual._correspondenceFactType })); community.AddQuery( Individual._correspondenceFactType, Individual.GetQueryName().QueryDefinition); community.AddQuery( Individual._correspondenceFactType, Individual.GetQueryTunes().QueryDefinition); community.AddType( Individual__name._correspondenceFactType, new Individual__name.CorrespondenceFactFactory(fieldSerializerByType), new FactMetadata(new List <CorrespondenceFactType> { Individual__name._correspondenceFactType })); community.AddQuery( Individual__name._correspondenceFactType, Individual__name.GetQueryIsCurrent().QueryDefinition); community.AddType( Tune._correspondenceFactType, new Tune.CorrespondenceFactFactory(fieldSerializerByType), new FactMetadata(new List <CorrespondenceFactType> { Tune._correspondenceFactType })); community.AddQuery( Tune._correspondenceFactType, Tune.GetQueryIndividuals().QueryDefinition); community.AddType( Like._correspondenceFactType, new Like.CorrespondenceFactFactory(fieldSerializerByType), new FactMetadata(new List <CorrespondenceFactType> { Like._correspondenceFactType })); }
public static Query GetQueryName() { if (_cacheQueryName == null) { _cacheQueryName = new Query() .JoinSuccessors(Individual__name.GetRoleIndividual(), Condition.WhereIsEmpty(Individual__name.GetQueryIsCurrent()) ) ; } return(_cacheQueryName); }