diff --git a/README.md b/README.md index 4eab53ed..424c74b8 100644 --- a/README.md +++ b/README.md @@ -266,7 +266,7 @@ var uri = new ODataQueryBuilder("http://mock/odata") ``` > $filter=concat(ODataKind/ODataCode/Code, '_1') eq 'test_code_1' -## Usage convert functions +## Usage other functions #### ConvertEnumToString ```csharp @@ -286,6 +286,16 @@ var uri = new ODataQueryBuilder("http://mock/odata") ``` > $filter=ODataKind/OpenDate eq 2019-02-09 +#### ReplaceCharacters +```csharp +var constValue = "3 & 4"; +... +.Filter((s, f) => s.ODataKind.ODataCode.Code == f.ReplaceCharacters( + constValue, + new Dictionary { { "&", "%26" } })) +``` +> $filter=ODataKind/ODataCode/Code eq '3 %26 4' + ## Suppress exceptions :warning: __May result in loss of control over the expected result.__ @@ -309,5 +319,4 @@ var uri = builder && o.In(s.IdType, new[] { 123, 512 })) .ToUri() ``` -> http://mock/odata/ODataType?$filter=IdType in (123,512) -``` \ No newline at end of file +> http://mock/odata/ODataType?$filter=IdType in (123,512) \ No newline at end of file