public void case_sensitive_mapping()
        {
            var search = new Search();

            search.SearchOptions.IsMappingSearch = true;
            search.SearchOptions.CaseSensitivity = true;

            search.AddSearchCriteria(SearchCombinator.And)
                  .AddCriteria("MappingValue", SearchCondition.Contains, "Test");
            var result = new QueryFactory().CreateQuery(search);

            Assert.AreEqual("(MappingValue.Contains(\"Test\"))", result);
        }
 private static void CreateSearchData(Search search, PartyRole entity1, PartyRole entity2)
 {
     search.AddSearchCriteria(SearchCombinator.Or)
         .AddCriteria("Name", SearchCondition.Equals, entity1.LatestDetails.Name)
         .AddCriteria("Name", SearchCondition.Equals, entity2.LatestDetails.Name);
 }
 private void AddMdmIdSearchCriteria(Search search)
 {
     search.AddSearchCriteria(SearchCombinator.And)
         .AddCriteria(this.EntityName() + ".Id", SearchCondition.NumericEquals, this.NameSearch);
 }
        private void AddMappingValueSearchCriteria(Search search)
        {
            var searchCriteria = search.AddSearchCriteria(SearchCombinator.And)
                .AddCriteria("MappingValue", SearchCondition.Contains, this.NameSearch);

            if (!string.IsNullOrEmpty(this.SourceSystem))
            {
                searchCriteria.AddCriteria("System.Name", SearchCondition.Equals, this.SourceSystem);
            }
        }
partial         void CreateSearchData(Search search, Person entity1, Person entity2)
        {
            search.AddSearchCriteria(SearchCombinator.Or)
                .AddCriteria("Firstname", SearchCondition.Equals, entity1.LatestDetails.FirstName)
                .AddCriteria("Firstname", SearchCondition.Equals, entity2.LatestDetails.FirstName);
        }
partial         void CreateSearchData(Search search, Location entity1, Location entity2)
        {
            search.AddSearchCriteria(SearchCombinator.Or)
                .AddCriteria("Id", SearchCondition.NumericEquals, entity1.Id.ToString())
                .AddCriteria("Id", SearchCondition.NumericEquals, entity2.Id.ToString());
        }
partial         void CreateSearchData(Search search, SourceSystem entity1, SourceSystem entity2)
        {
            search.AddSearchCriteria(SearchCombinator.Or)
                .AddCriteria("Name", SearchCondition.Equals, entity1.Name)
                .AddCriteria("Name", SearchCondition.Equals, entity2.Name);
        }